Unverified Commit 2d0ed312 authored by Josh Story's avatar Josh Story Committed by GitHub

Include PPR routes in dynamicRoutes regardless of revalidate time (#94025)

parent ceff7268
......@@ -3345,7 +3345,10 @@ export default async function build(
}
}
if (!hasRevalidateZero && isDynamicRoute(page)) {
const shouldEmitDynamicPrerenderRoutes =
!hasRevalidateZero || isRoutePPREnabled
if (shouldEmitDynamicPrerenderRoutes && isDynamicRoute(page)) {
// When PPR fallbacks aren't used, we need to include it here. If
// they are enabled, then it'll already be included in the
// prerendered routes.
......
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