File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -3557,23 +3557,12 @@ export default async function build(
3557
3557
...routesManifest . staticRoutes ,
3558
3558
...routesManifest . dynamicRoutes ,
3559
3559
] ) {
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.
3563
3560
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
- }
3572
3561
3573
3562
// We don't need to add the prefetch segment data routes if it was
3574
3563
// added due to a page that was already generated. This would have
3575
3564
// happened if the page was static or partially static.
3576
- if ( route . prefetchSegmentDataRoutes ) {
3565
+ if ( originalAppPath && route . prefetchSegmentDataRoutes ) {
3577
3566
continue
3578
3567
}
3579
3568
You can’t perform that action at this time.
0 commit comments