This commit is contained in:
taranvohra
2025-03-07 19:07:47 +05:30
parent 90604c4c3b
commit 59a0e2b7fa
+1
View File
@@ -200,6 +200,7 @@ function getSiteURLFromRequest(request: NextRequest): URLWithMode | null {
}
const xForwardedHost = request.headers.get('x-forwarded-host');
console.log('x-forwarded-host', xForwardedHost);
// The x-forwarded-host is set by Vercel for all requests
// so we ignore it if the hostname is the same as the instance one.
if (xForwardedHost) {