File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ import type { NextConfig } from 'next/dist/server/config-shared'
13
13
import type { NextRequest , RequestInit } from 'next/dist/server/web/spec-extension/request.js'
14
14
15
15
export type NetlifyNextRequest = RequestInit &
16
- Pick < NextRequest , 'url' | 'headers' | 'geo' | 'ip' | 'method' | 'body' >
16
+ Pick < NextRequest , 'url' | 'geo' | 'ip' | 'method' | 'body' > & {
17
+ headers : HeadersInit
18
+ }
17
19
18
20
const normalizeRequest = ( url : URL , nextConfig ?: NextConfig ) : URL => {
19
21
url . pathname = removeBasePath ( url . pathname , nextConfig ?. basePath )
@@ -68,7 +70,7 @@ export const buildNextRequest = (
68
70
69
71
return {
70
72
url : normalizedUrl . toString ( ) ,
71
- headers,
73
+ headers : Object . fromEntries ( headers . entries ( ) ) ,
72
74
geo : {
73
75
city,
74
76
country : country ?. code ,
You can’t perform that action at this time.
0 commit comments