Skip to content

Commit eaabfba

Browse files
committed
[wip] Inverse prefetch segment routes for Pages
1 parent 576e697 commit eaabfba

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

packages/next/src/build/index.ts

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,23 +3557,12 @@ export default async function build(
35573557
...routesManifest.staticRoutes,
35583558
...routesManifest.dynamicRoutes,
35593559
]) {
3560-
// We only want to handle pages that are using the app router. We
3561-
// need this path in order to determine if it's an app route or an
3562-
// app page.
35633560
const originalAppPath = pageInfos.get(route.page)?.originalAppPath
3564-
if (!originalAppPath) {
3565-
continue
3566-
}
3567-
3568-
// We only want to handle app pages, not app routes.
3569-
if (isAppRouteRoute(originalAppPath)) {
3570-
continue
3571-
}
35723561

35733562
// We don't need to add the prefetch segment data routes if it was
35743563
// added due to a page that was already generated. This would have
35753564
// happened if the page was static or partially static.
3576-
if (route.prefetchSegmentDataRoutes) {
3565+
if (originalAppPath && route.prefetchSegmentDataRoutes) {
35773566
continue
35783567
}
35793568

0 commit comments

Comments
 (0)