Skip to content

Commit

Permalink
[ppr] Data route fix (vercel#66190)
Browse files Browse the repository at this point in the history
Fixes a typo in the logic for checking if it should add the prefetch
data doute.
  • Loading branch information
wyattjoh committed May 24, 2024
1 parent 08b75b7 commit 0252221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2793,7 +2793,7 @@ export default async function build(
let prefetchDataRoute: string | null | undefined
// We write the `.prefetch.rsc` when the app has PPR enabled, so
// always add the prefetch data route to the manifest.
if (!isRouteHandler && experimentalPPR) {
if (!isRouteHandler && isAppPPREnabled) {
prefetchDataRoute = path.posix.join(
`${normalizedRoute}${RSC_PREFETCH_SUFFIX}`
)
Expand Down

0 comments on commit 0252221

Please sign in to comment.