[ppr] Data route fix (#66190)

Fixes a typo in the logic for checking if it should add the prefetch
data doute.
This commit is contained in:
Wyatt Johnson 2024-05-24 13:24:48 -06:00 committed by GitHub
parent 08b75b77b0
commit 02522212c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}`
)