Unverified Commit 02522212 authored by Wyatt Johnson's avatar Wyatt Johnson Committed by GitHub

[ppr] Data route fix (#66190)

Fixes a typo in the logic for checking if it should add the prefetch
data doute.
parent 08b75b77
...@@ -2793,7 +2793,7 @@ export default async function build( ...@@ -2793,7 +2793,7 @@ export default async function build(
let prefetchDataRoute: string | null | undefined let prefetchDataRoute: string | null | undefined
// We write the `.prefetch.rsc` when the app has PPR enabled, so // We write the `.prefetch.rsc` when the app has PPR enabled, so
// always add the prefetch data route to the manifest. // always add the prefetch data route to the manifest.
if (!isRouteHandler && experimentalPPR) { if (!isRouteHandler && isAppPPREnabled) {
prefetchDataRoute = path.posix.join( prefetchDataRoute = path.posix.join(
`${normalizedRoute}${RSC_PREFETCH_SUFFIX}` `${normalizedRoute}${RSC_PREFETCH_SUFFIX}`
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment