mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-10 12:57:47 +00:00
[ppr] Fix for error case involving prefetch data routes (#11638)
Only error when the prefetch data route is present but the route also has PPR enabled.
This commit is contained in:
6
.changeset/sixty-lions-check.md
Normal file
6
.changeset/sixty-lions-check.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
'@vercel/next': patch
|
||||
'vercel': patch
|
||||
---
|
||||
|
||||
Fix related to erroring when a prefetch route is not provided but the route is PPR enabled
|
||||
@@ -2270,7 +2270,7 @@ export const onPrerenderRoute =
|
||||
}
|
||||
|
||||
outputPathPrefetchData = normalizeDataRoute(prefetchDataRoute);
|
||||
} else if (isAppPPREnabled) {
|
||||
} else if (experimentalPPR) {
|
||||
throw new Error('Invariant: expected to find prefetch data route PPR');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user