diff --git a/packages/next/src/server/app-render/app-render.tsx b/packages/next/src/server/app-render/app-render.tsx index 523116e96fbfb3..eafc76c18e946e 100644 --- a/packages/next/src/server/app-render/app-render.tsx +++ b/packages/next/src/server/app-render/app-render.tsx @@ -3979,10 +3979,7 @@ async function collectSegmentData( // decomposed into a separate stream per segment. const clientReferenceManifest = renderOpts.clientReferenceManifest - if ( - !clientReferenceManifest || - renderOpts.experimental.isRoutePPREnabled !== true - ) { + if (!clientReferenceManifest || !renderOpts.experimental.clientSegmentCache) { return } diff --git a/packages/next/src/server/app-render/types.ts b/packages/next/src/server/app-render/types.ts index 9b5de5151e4fac..e77aa229395262 100644 --- a/packages/next/src/server/app-render/types.ts +++ b/packages/next/src/server/app-render/types.ts @@ -183,6 +183,7 @@ export interface RenderOptsPartial { expireTime: ExpireTime | undefined clientTraceMetadata: string[] | undefined dynamicIO: boolean + clientSegmentCache: boolean inlineCss: boolean authInterrupts: boolean } diff --git a/packages/next/src/server/base-server.ts b/packages/next/src/server/base-server.ts index cd604095281a81..3c23f8af115226 100644 --- a/packages/next/src/server/base-server.ts +++ b/packages/next/src/server/base-server.ts @@ -592,6 +592,8 @@ export default abstract class Server< expireTime: this.nextConfig.expireTime, clientTraceMetadata: this.nextConfig.experimental.clientTraceMetadata, dynamicIO: this.nextConfig.experimental.dynamicIO ?? false, + clientSegmentCache: + this.nextConfig.experimental.clientSegmentCache ?? false, inlineCss: this.nextConfig.experimental.inlineCss ?? false, authInterrupts: !!this.nextConfig.experimental.authInterrupts, },