@@ -3009,12 +3009,6 @@ export default async function build(
3009
3009
]
3010
3010
3011
3011
for ( const prerenderedRoute of prerenderedRoutes ) {
3012
- // TODO: check if still needed?
3013
- // Exclude the /_not-found route.
3014
- if ( prerenderedRoute . pathname === UNDERSCORE_NOT_FOUND_ROUTE ) {
3015
- continue
3016
- }
3017
-
3018
3012
if (
3019
3013
isRoutePPREnabled &&
3020
3014
prerenderedRoute . fallbackRouteParams &&
@@ -3637,23 +3631,6 @@ export default async function build(
3637
3631
await writeManifest ( pagesManifestPath , pagesManifest )
3638
3632
} )
3639
3633
3640
- const hasStaticAppRouterNotFound = existsSync (
3641
- path . join ( distDir , 'server' , 'app' , '_not-found.html' )
3642
- )
3643
- // If the _not-found.html exists, add /_not-found to the prerender manifest
3644
- if ( hasStaticAppRouterNotFound ) {
3645
- prerenderManifest . routes [ '/_not-found' ] = {
3646
- initialRevalidateSeconds : false ,
3647
- initialExpireSeconds : undefined ,
3648
- experimentalPPR : undefined ,
3649
- renderingMode : undefined ,
3650
- srcRoute : null ,
3651
- dataRoute : null ,
3652
- prefetchDataRoute : null ,
3653
- allowHeader : ALLOWED_HEADERS ,
3654
- }
3655
- }
3656
-
3657
3634
// As we may have modified the dynamicRoutes, we need to sort the
3658
3635
// dynamic routes by page.
3659
3636
routesManifest . dynamicRoutes = sortSortableRouteObjects (
0 commit comments