fix: remove unnecessary runtime config for Node.js in proxy settings

This commit is contained in:
Linus Rath
2026-04-25 18:54:15 +02:00
parent fe1d4861bb
commit cfb4a23c9d
+2 -3
View File
@@ -88,9 +88,8 @@ export async function proxy(request: NextRequest) {
return response;
}
// Next 16's Proxy always runs on Node.js runtime, so no `runtime` config is
// allowed (or needed) — we can read the plugin registry from disk directly.
export const config = {
matcher: ["/((?!api|_next|.*\\..*).*)"],
// Read the plugin registry from disk to compute the dynamic frame-src
// allowlist. Edge runtime can't access the filesystem.
runtime: "nodejs",
};