From 9a4a09807d7d6f116b5630f1320ae222021f5521 Mon Sep 17 00:00:00 2001 From: Henry Smith Date: Thu, 4 Aug 2022 10:14:08 +0100 Subject: [PATCH] fix: allow proxy of /_next/static --- plugin/src/templates/edge/runtime.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin/src/templates/edge/runtime.ts b/plugin/src/templates/edge/runtime.ts index 076a994610..da543acd14 100644 --- a/plugin/src/templates/edge/runtime.ts +++ b/plugin/src/templates/edge/runtime.ts @@ -46,9 +46,6 @@ globalThis.NFRequestContextMap ||= new Map() const handler = async (req: Request, context: Context) => { const url = new URL(req.url) - if (url.pathname.startsWith('/_next/static/')) { - return - } const geo = { country: context.geo.country?.code,