File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,10 @@ function serveErrorResponse(error: Error) {
171
171
* URL is taken from the pathname.
172
172
*/
173
173
function getSiteURLFromRequest ( request : NextRequest ) : URLWithMode | null {
174
+ request . headers . forEach ( ( value , key ) => {
175
+ console . log ( 'header' , { key, value } ) ;
176
+ } ) ;
177
+
174
178
const xGitbookUrl = request . headers . get ( 'x-gitbook-url' ) ;
175
179
if ( xGitbookUrl ) {
176
180
return {
@@ -200,7 +204,6 @@ function getSiteURLFromRequest(request: NextRequest): URLWithMode | null {
200
204
}
201
205
202
206
const xForwardedHost = request . headers . get ( 'x-forwarded-host' ) ;
203
- console . log ( 'x-forwarded-host' , xForwardedHost ) ;
204
207
// The x-forwarded-host is set by Vercel for all requests
205
208
// so we ignore it if the hostname is the same as the instance one.
206
209
if ( xForwardedHost ) {
You can’t perform that action at this time.
0 commit comments