Unverified Commit 02095c0e authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

[metadata] fix ppr deployment by not disabling ppr (#76087)

### What

For PPR deployment we shouldn't disbale the PPR config inside of Next.js
but let infra determine when to pass down the PPR cache. If we disable
it inside Next.js it could lead to other error when the infra tries to
get the cache in dynamic-resume.
parent 8136842c
...@@ -2166,8 +2166,7 @@ export default abstract class Server< ...@@ -2166,8 +2166,7 @@ export default abstract class Server<
const couldSupportPPR: boolean = const couldSupportPPR: boolean =
this.isAppPPREnabled && this.isAppPPREnabled &&
typeof routeModule !== 'undefined' && typeof routeModule !== 'undefined' &&
isAppPageRouteModule(routeModule) && isAppPageRouteModule(routeModule)
!isHtmlBot
// When enabled, this will allow the use of the `?__nextppronly` query to // When enabled, this will allow the use of the `?__nextppronly` query to
// enable debugging of the static shell. // enable debugging of the static shell.
...@@ -3228,8 +3227,7 @@ export default abstract class Server< ...@@ -3228,8 +3227,7 @@ export default abstract class Server<
const didPostpone = const didPostpone =
cacheEntry.value?.kind === CachedRouteKind.APP_PAGE && cacheEntry.value?.kind === CachedRouteKind.APP_PAGE &&
typeof cacheEntry.value.postponed === 'string' && typeof cacheEntry.value.postponed === 'string'
!isHtmlBot
if ( if (
isSSG && isSSG &&
......
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