Skip to content

Commit c2ff55f

Browse files
committed
fix: remove catch all handler redirect to support fallback false and custom 404s
1 parent 1834fd0 commit c2ff55f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

packages/runtime/src/helpers/redirects.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -295,13 +295,6 @@ export const generateRedirects = async ({
295295
netlifyConfig.redirects.push(...dynamicRewrites)
296296
routesThatMatchMiddleware.push(...dynamicRoutesThatMatchMiddleware)
297297

298-
// Final fallback
299-
netlifyConfig.redirects.push({
300-
from: `${basePath}/*`,
301-
to: HANDLER_FUNCTION_PATH,
302-
status: 200,
303-
})
304-
305298
const middlewareMatches = new Set(routesThatMatchMiddleware).size
306299
if (middlewareMatches > 0) {
307300
console.log(

0 commit comments

Comments
 (0)