mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 01:53:26 +00:00
add log
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user