This commit is contained in:
taranvohra
2025-03-26 16:27:54 +05:30
parent e9fa50dfb5
commit 0502463638
2 changed files with 6 additions and 2 deletions
-2
View File
@@ -634,8 +634,6 @@
"@gitbook/emoji-codepoints": ["@gitbook/emoji-codepoints@workspace:packages/emoji-codepoints"],
"@gitbook/fontawesome-pro": ["@gitbook/fontawesome-pro@1.0.8", "", { "dependencies": { "@fortawesome/fontawesome-common-types": "^6.6.0" } }, "sha512-i4PgiuGyUb52Muhc52kK3aMJIMfMkA2RbPW30tre8a6M8T6mWTfYo6gafSgjNvF1vH29zcuB8oBYnF0gO4XcHA=="],
"@gitbook/icons": ["@gitbook/icons@workspace:packages/icons"],
"@gitbook/openapi-parser": ["@gitbook/openapi-parser@workspace:packages/openapi-parser"],
+6
View File
@@ -352,6 +352,12 @@ function getSiteURLFromRequest(request: NextRequest): URLWithMode | null {
return null;
}
console.log(
'requestHeaders',
request.headers.entries().map(([key, value]) => [key, value])
);
console.log('nextUrl', request.nextUrl.toString());
const xForwardedHost = request.headers.get('x-forwarded-host');
// 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.