From e444bd07a802fe051fee016c3d22c5164d658308 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Thu, 9 Nov 2023 14:33:56 +0100 Subject: [PATCH] fix: make excludedPaths posix, always --- src/helpers/setUpEdgeFunction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/setUpEdgeFunction.js b/src/helpers/setUpEdgeFunction.js index 024f5074d..21860b88e 100644 --- a/src/helpers/setUpEdgeFunction.js +++ b/src/helpers/setUpEdgeFunction.js @@ -54,7 +54,7 @@ const setUpEdgeFunction = async ({ angularJson, constants, failBuild }) => { ) const { routes: prerenderedRoutes } = await readJson(join(outputDir, 'prerendered-routes.json')) - const excludedPaths = [...staticFiles, ...prerenderedRoutes] + const excludedPaths = [...staticFiles, ...prerenderedRoutes].map(toPosix) // buy putting this into a separate module that's imported first, // we ensure this is initialised before any other module