@@ -168,7 +168,6 @@ import { RouteKind } from './route-kind'
168
168
import type { RouteModule } from './route-modules/route-module'
169
169
import { FallbackMode , parseFallbackField } from '../lib/fallback'
170
170
import { toResponseCacheEntry } from './response-cache/utils'
171
- import { scheduleOnNextTick } from '../lib/scheduler'
172
171
import { SegmentPrefixRSCPathnameNormalizer } from './normalizers/request/segment-prefix-rsc'
173
172
import {
174
173
shouldServeStreamingMetadata ,
@@ -2674,7 +2673,6 @@ export default abstract class Server<
2674
2673
headers,
2675
2674
} ,
2676
2675
cacheControl : { revalidate, expire } ,
2677
- isFallback : false ,
2678
2676
}
2679
2677
2680
2678
return cacheEntry
@@ -2881,7 +2879,6 @@ export default abstract class Server<
2881
2879
return {
2882
2880
value : null ,
2883
2881
cacheControl,
2884
- isFallback : false ,
2885
2882
} satisfies ResponseCacheEntry
2886
2883
}
2887
2884
@@ -2893,7 +2890,6 @@ export default abstract class Server<
2893
2890
props : metadata . pageData ?? metadata . flightData ,
2894
2891
} satisfies CachedRedirectValue ,
2895
2892
cacheControl,
2896
- isFallback : false ,
2897
2893
} satisfies ResponseCacheEntry
2898
2894
}
2899
2895
@@ -2915,7 +2911,6 @@ export default abstract class Server<
2915
2911
segmentData : metadata . segmentData ,
2916
2912
} satisfies CachedAppPageValue ,
2917
2913
cacheControl,
2918
- isFallback : ! ! fallbackRouteParams ,
2919
2914
} satisfies ResponseCacheEntry
2920
2915
}
2921
2916
@@ -2928,7 +2923,6 @@ export default abstract class Server<
2928
2923
status : isAppPath ? res . statusCode : undefined ,
2929
2924
} satisfies CachedPageValue ,
2930
2925
cacheControl,
2931
- isFallback : pagesFallback ,
2932
2926
}
2933
2927
}
2934
2928
@@ -3155,7 +3149,6 @@ export default abstract class Server<
3155
3149
) {
3156
3150
return {
3157
3151
cacheControl : { revalidate : 1 , expire : undefined } ,
3158
- isFallback : false ,
3159
3152
value : {
3160
3153
kind : CachedRouteKind . PAGES ,
3161
3154
html : RenderResult . fromStatic ( '' ) ,
@@ -3220,46 +3213,6 @@ export default abstract class Server<
3220
3213
return null
3221
3214
}
3222
3215
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
-
3263
3216
const didPostpone =
3264
3217
cacheEntry . value ?. kind === CachedRouteKind . APP_PAGE &&
3265
3218
typeof cacheEntry . value . postponed === 'string'
0 commit comments