Skip to content

Commit 2c5c916

Browse files
committed
remove dev warmup codepaths
1 parent 4a93d2e commit 2c5c916

File tree

5 files changed

+131
-353
lines changed

5 files changed

+131
-353
lines changed

packages/next/src/build/templates/app-page.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -402,27 +402,6 @@ export async function handler(
402402
const nextReq = new NodeNextRequest(req)
403403
const nextRes = new NodeNextResponse(res)
404404

405-
// TODO: adapt for putting the RDC inside the postponed data
406-
// If we're in dev, and this isn't a prefetch or a server action,
407-
// we should seed the resume data cache.
408-
if (process.env.NODE_ENV === 'development') {
409-
if (
410-
nextConfig.experimental.cacheComponents &&
411-
!isPrefetchRSCRequest &&
412-
!context.renderOpts.isPossibleServerAction &&
413-
process.env.NEXT_RESTART_ON_CACHE_MISS === '0'
414-
) {
415-
const warmup = await routeModule.warmup(nextReq, nextRes, context)
416-
417-
// If the warmup is successful, we should use the resume data
418-
// cache from the warmup.
419-
if (warmup.metadata.renderResumeDataCache) {
420-
context.renderOpts.renderResumeDataCache =
421-
warmup.metadata.renderResumeDataCache
422-
}
423-
}
424-
}
425-
426405
return routeModule.render(nextReq, nextRes, context).finally(() => {
427406
if (!span) return
428407

packages/next/src/export/routes/app-page.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ export async function exportAppPage(
8484
fallbackRouteParams,
8585
renderOpts,
8686
undefined,
87-
false,
8887
sharedContext
8988
)
9089

0 commit comments

Comments
 (0)