From ac46a0d3238af1e6f8c3b8f235163385be1ff732 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 12 Sep 2022 11:17:17 -0400 Subject: [PATCH] fix: serialize route pattern for Netlify edge Co-authored-by: Jackie Macharia --- .../integrations/netlify/src/integration-edge-functions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/integrations/netlify/src/integration-edge-functions.ts b/packages/integrations/netlify/src/integration-edge-functions.ts index 8e16e0595..da62c3dab 100644 --- a/packages/integrations/netlify/src/integration-edge-functions.ts +++ b/packages/integrations/netlify/src/integration-edge-functions.ts @@ -57,6 +57,10 @@ async function createEdgeManifest(routes: RouteData[], entryFile: string, dir: U path: route.pathname, }); } else { + console.log({ + og: route.pattern.source.toString(), + new: route.pattern.source.replace(/\\\//g, '/').toString(), + }); functions.push({ function: entryFile, // Make route pattern serializable to match expected