diff --git a/packages/nemo/src/index.ts b/packages/nemo/src/index.ts index eff2d0e..1ce77da 100644 --- a/packages/nemo/src/index.ts +++ b/packages/nemo/src/index.ts @@ -139,7 +139,7 @@ export function createMiddleware( if (middlewareResponse instanceof Response) return middlewareResponse; } - return NextResponse.next({ request, headers: request.headers }); + return NextResponse.next({ headers: new Headers(request.headers) }); }; }