Skip to content

Commit 9fb04f9

Browse files
authored
fix: don't shadow netlify functions (#115)
1 parent 55f42b6 commit 9fb04f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

demo.test.mjs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ test('edge function config', async () => {
55
const { config } = await import('./demo/.netlify/edge-functions/angular-ssr/angular-ssr.mjs')
66

77
assert.deepEqual(config.excludedPath, [
8+
'/.netlify/*',
89
'/dashboard/index.html',
910
'/favicon.ico',
1011
'/heroes/index.html',

src/helpers/setUpEdgeFunction.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const setUpEdgeFunction = async ({ angularJson, constants, failBuild }) => {
8383
(path) => `/${relative(join(outputDir, 'browser'), path)}`,
8484
)
8585

86-
const excludedPaths = [...staticFiles, ...(await getPrerenderedRoutes(outputDir))].map(toPosix)
86+
const excludedPaths = ['/.netlify/*', ...staticFiles, ...(await getPrerenderedRoutes(outputDir))].map(toPosix)
8787

8888
// buy putting this into a separate module that's imported first,
8989
// we ensure this is initialised before any other module

0 commit comments

Comments
 (0)