From b5dcc7a99128fde5def34f059a04f6540d1ac0ed Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Thu, 13 Nov 2025 23:47:07 +0100 Subject: [PATCH] fix: change edge runtime to prevent weird header override in unkey sdk (#25140) --- apps/web/middleware.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index dfbe1ed52f..007ba7311f 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -225,6 +225,7 @@ function enrichRequestWithHeaders({ req }: { req: NextRequest }) { } export const config = { + runtime: "nodejs", matcher: ["/((?!_next(?:/|$)|static(?:/|$)|public(?:/|$)|favicon\\.ico$|robots\\.txt$|sitemap\\.xml$).*)"], };