Skip to content

Commit c97cf61

Browse files
committed
test: don't delete BUILD_ID in test env
1 parent 9db06dd commit c97cf61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/runtime/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const HIDDEN_PATHS = [
1717
'/build-manifest.json',
1818
'/prerender-manifest.json',
1919
'/react-loadable-manifest.json',
20-
'/BUILD_ID',
20+
process.env.NODE_ENV === `test` ? false : '/BUILD_ID',
2121
'/app-build-manifest.json',
2222
'/app-path-routes-manifest.json',
2323
'/export-marker.json',
@@ -27,7 +27,7 @@ export const HIDDEN_PATHS = [
2727
'/prerender-manifest.js',
2828
'/required-server-files.json',
2929
'/static-manifest.json',
30-
]
30+
].filter(Boolean)
3131

3232
export const ODB_FUNCTION_PATH = `/.netlify/builders/${ODB_FUNCTION_NAME}`
3333
export const HANDLER_FUNCTION_PATH = `/.netlify/functions/${HANDLER_FUNCTION_NAME}`

0 commit comments

Comments
 (0)