@@ -168,7 +168,6 @@ import { RouteKind } from './route-kind'
168168import type { RouteModule } from './route-modules/route-module'
169169import { FallbackMode , parseFallbackField } from '../lib/fallback'
170170import { toResponseCacheEntry } from './response-cache/utils'
171- import { scheduleOnNextTick } from '../lib/scheduler'
172171import { SegmentPrefixRSCPathnameNormalizer } from './normalizers/request/segment-prefix-rsc'
173172import {
174173 shouldServeStreamingMetadata ,
@@ -2674,7 +2673,6 @@ export default abstract class Server<
26742673 headers,
26752674 } ,
26762675 cacheControl : { revalidate, expire } ,
2677- isFallback : false ,
26782676 }
26792677
26802678 return cacheEntry
@@ -2881,7 +2879,6 @@ export default abstract class Server<
28812879 return {
28822880 value : null ,
28832881 cacheControl,
2884- isFallback : false ,
28852882 } satisfies ResponseCacheEntry
28862883 }
28872884
@@ -2893,7 +2890,6 @@ export default abstract class Server<
28932890 props : metadata . pageData ?? metadata . flightData ,
28942891 } satisfies CachedRedirectValue ,
28952892 cacheControl,
2896- isFallback : false ,
28972893 } satisfies ResponseCacheEntry
28982894 }
28992895
@@ -2915,7 +2911,6 @@ export default abstract class Server<
29152911 segmentData : metadata . segmentData ,
29162912 } satisfies CachedAppPageValue ,
29172913 cacheControl,
2918- isFallback : ! ! fallbackRouteParams ,
29192914 } satisfies ResponseCacheEntry
29202915 }
29212916
@@ -2928,7 +2923,6 @@ export default abstract class Server<
29282923 status : isAppPath ? res . statusCode : undefined ,
29292924 } satisfies CachedPageValue ,
29302925 cacheControl,
2931- isFallback : pagesFallback ,
29322926 }
29332927 }
29342928
@@ -3155,7 +3149,6 @@ export default abstract class Server<
31553149 ) {
31563150 return {
31573151 cacheControl : { revalidate : 1 , expire : undefined } ,
3158- isFallback : false ,
31593152 value : {
31603153 kind : CachedRouteKind . PAGES ,
31613154 html : RenderResult . fromStatic ( '' ) ,
@@ -3220,46 +3213,6 @@ export default abstract class Server<
32203213 return null
32213214 }
32223215
3223- // If we're not in minimal mode and the cache entry that was returned was a
3224- // app page fallback, then we need to kick off the dynamic shell generation.
3225- if (
3226- ssgCacheKey &&
3227- ! this . minimalMode &&
3228- isRoutePPREnabled &&
3229- cacheEntry . value ?. kind === CachedRouteKind . APP_PAGE &&
3230- cacheEntry . isFallback &&
3231- ! isOnDemandRevalidate &&
3232- // When we're debugging the fallback shell, we don't want to regenerate
3233- // the route shell.
3234- ! isDebugFallbackShell &&
3235- process . env . DISABLE_ROUTE_SHELL_GENERATION !== 'true'
3236- ) {
3237- scheduleOnNextTick ( async ( ) => {
3238- try {
3239- await this . responseCache . get (
3240- ssgCacheKey ,
3241- ( ) =>
3242- doRender ( {
3243- // We're an on-demand request, so we don't need to pass in the
3244- // fallbackRouteParams.
3245- fallbackRouteParams : null ,
3246- pagesFallback : undefined ,
3247- postponed : undefined ,
3248- } ) ,
3249- {
3250- routeKind : RouteKind . APP_PAGE ,
3251- incrementalCache,
3252- isOnDemandRevalidate : true ,
3253- isPrefetch : false ,
3254- isRoutePPREnabled : true ,
3255- }
3256- )
3257- } catch ( err ) {
3258- console . error ( 'Error occurred while rendering dynamic shell' , err )
3259- }
3260- } )
3261- }
3262-
32633216 const didPostpone =
32643217 cacheEntry . value ?. kind === CachedRouteKind . APP_PAGE &&
32653218 typeof cacheEntry . value . postponed === 'string'
0 commit comments