We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bc2d17 commit 6e28747Copy full SHA for 6e28747
packages/gitbook-v2/src/middleware.ts
@@ -325,7 +325,7 @@ async function serveWithQueryAPIToken(
325
*/
326
function getSiteURLFromRequest(request: NextRequest): URLWithMode | null {
327
console.log('nextRequestUrl', request.nextUrl.toString());
328
- request.headers.entries().forEach(([key, value]) => console.log(key, value));
+ Array.from(request.headers.entries()).forEach(([key, value]) => console.log(key, value));
329
330
const xGitbookUrl = request.headers.get('x-gitbook-url');
331
if (xGitbookUrl) {
0 commit comments