Skip to content

Commit d1f49d1

Browse files
committed
remove cond
1 parent d7b51e2 commit d1f49d1

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

packages/next/src/build/index.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3009,12 +3009,6 @@ export default async function build(
30093009
]
30103010

30113011
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-
30183012
if (
30193013
isRoutePPREnabled &&
30203014
prerenderedRoute.fallbackRouteParams &&
@@ -3637,23 +3631,6 @@ export default async function build(
36373631
await writeManifest(pagesManifestPath, pagesManifest)
36383632
})
36393633

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-
36573634
// As we may have modified the dynamicRoutes, we need to sort the
36583635
// dynamic routes by page.
36593636
routesManifest.dynamicRoutes = sortSortableRouteObjects(

0 commit comments

Comments
 (0)