File tree Expand file tree Collapse file tree 12 files changed +9
-29
lines changed Expand file tree Collapse file tree 12 files changed +9
-29
lines changed Original file line number Diff line number Diff line change @@ -828,7 +828,6 @@ export async function buildAppStaticPaths({
828
828
incrementalCache,
829
829
cacheLifeProfiles,
830
830
supportsDynamicResponse : true ,
831
- isRevalidate : false ,
832
831
experimental : {
833
832
cacheComponents,
834
833
authInterrupts,
Original file line number Diff line number Diff line change @@ -539,7 +539,6 @@ export async function handler(
539
539
)
540
540
: `${ process . cwd ( ) } /${ routeModule . relativeProjectDir } ` ,
541
541
isDraftMode,
542
- isRevalidate : isSSG && ! postponed && ! isDynamicRSCRequest ,
543
542
botType,
544
543
isOnDemandRevalidate,
545
544
isPossibleServerAction,
@@ -566,7 +565,6 @@ export async function handler(
566
565
nextExport : true ,
567
566
supportsDynamicResponse : false ,
568
567
isStaticGeneration : true ,
569
- isRevalidate : true ,
570
568
isDebugDynamicAccesses : isDebugDynamicAccesses ,
571
569
}
572
570
: { } ) ,
@@ -612,7 +610,6 @@ export async function handler(
612
610
if ( isDebugStaticShell || isDebugDynamicAccesses ) {
613
611
context . renderOpts . nextExport = true
614
612
context . renderOpts . supportsDynamicResponse = false
615
- context . renderOpts . isRevalidate = true
616
613
context . renderOpts . isDebugDynamicAccesses = isDebugDynamicAccesses
617
614
}
618
615
@@ -1417,7 +1414,7 @@ export async function handler(
1417
1414
routePath : srcPage ,
1418
1415
routeType : 'render' ,
1419
1416
revalidateReason : getRevalidateReason ( {
1420
- isRevalidate : isSSG ,
1417
+ isStaticGeneration : isSSG ,
1421
1418
isOnDemandRevalidate,
1422
1419
} ) ,
1423
1420
} ,
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export async function handler(
162
162
// page and it is not being resumed from a postponed render and
163
163
// it is not a dynamic RSC request then it is a revalidation
164
164
// request.
165
- const isRevalidate = isIsr && ! supportsDynamicResponse
165
+ const isStaticGeneration = isIsr && ! supportsDynamicResponse
166
166
167
167
// Before rendering (which initializes component tree modules), we have to
168
168
// set the reference manifests to our global store so Server Action's
@@ -193,7 +193,6 @@ export async function handler(
193
193
supportsDynamicResponse,
194
194
incrementalCache : getRequestMeta ( req , 'incrementalCache' ) ,
195
195
cacheLifeProfiles : nextConfig . experimental ?. cacheLife ,
196
- isRevalidate,
197
196
waitUntil : ctx . waitUntil ,
198
197
onClose : ( cb ) => {
199
198
res . on ( 'close' , cb )
@@ -358,7 +357,7 @@ export async function handler(
358
357
routePath : srcPage ,
359
358
routeType : 'route' ,
360
359
revalidateReason : getRevalidateReason ( {
361
- isRevalidate ,
360
+ isStaticGeneration ,
362
361
isOnDemandRevalidate,
363
362
} ) ,
364
363
} ,
@@ -473,7 +472,7 @@ export async function handler(
473
472
routePath : normalizedSrcPage ,
474
473
routeType : 'route' ,
475
474
revalidateReason : getRevalidateReason ( {
476
- isRevalidate ,
475
+ isStaticGeneration ,
477
476
isOnDemandRevalidate,
478
477
} ) ,
479
478
} )
Original file line number Diff line number Diff line change @@ -138,7 +138,6 @@ async function requestHandler(
138
138
dir : pageRouteModule . relativeProjectDir ,
139
139
botType,
140
140
isDraftMode : false ,
141
- isRevalidate : false ,
142
141
isOnDemandRevalidate,
143
142
isPossibleServerAction,
144
143
assetPrefix : nextConfig . assetPrefix ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const workAsyncStorage =
11
11
export function HandleISRError ( { error } : { error : any } ) {
12
12
if ( workAsyncStorage ) {
13
13
const store = workAsyncStorage . getStore ( )
14
- if ( store ?. isRevalidate || store ?. isStaticGeneration ) {
14
+ if ( store ?. isStaticGeneration ) {
15
15
if ( error ) {
16
16
console . error ( error )
17
17
}
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ import type {
20
20
MockedResponse ,
21
21
} from '../../server/lib/mock-request'
22
22
import { isDynamicUsageError } from '../helpers/is-dynamic-usage-error'
23
- import { hasNextSupport } from '../../server/ci-info'
24
23
import { isStaticGenEnabled } from '../../server/route-modules/app-route/helpers/is-static-gen-enabled'
25
24
import type { ExperimentalConfig } from '../../server/config-shared'
26
25
import { isMetadataRoute } from '../../lib/metadata/is-metadata-route'
@@ -94,10 +93,6 @@ export async function exportAppRoute(
94
93
} ,
95
94
}
96
95
97
- if ( hasNextSupport ) {
98
- context . renderOpts . isRevalidate = true
99
- }
100
-
101
96
try {
102
97
const userland = module . userland
103
98
// we don't bail from the static optimization for
Original file line number Diff line number Diff line change @@ -282,10 +282,6 @@ async function exportPageImpl(
282
282
renderResumeDataCache,
283
283
}
284
284
285
- if ( hasNextSupport ) {
286
- renderOpts . isRevalidate = true
287
- }
288
-
289
285
// Handle App Pages
290
286
if ( isAppDir ) {
291
287
const sharedContext : AppSharedContext = { buildId }
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ export interface RenderOptsPartial {
99
99
htmlRequestId : string ,
100
100
requestId : string
101
101
) => void
102
- isRevalidate ?: boolean
103
102
nextExport ?: boolean
104
103
nextConfigOutput ?: 'standalone' | 'export'
105
104
onInstrumentationRequestError ?: ServerOnInstrumentationRequestError
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ export interface WorkStore {
38
38
*/
39
39
readonly hasReadableErrorStacks ?: boolean
40
40
41
- readonly isRevalidate ?: boolean
42
-
43
41
forceDynamic ?: boolean
44
42
fetchCache ?: AppSegmentConfig [ 'fetchCache' ]
45
43
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ export type WorkStoreContext = {
54
54
| 'assetPrefix'
55
55
| 'supportsDynamicResponse'
56
56
| 'shouldWaitOnAllReady'
57
- | 'isRevalidate'
58
57
| 'nextExport'
59
58
| 'isDraftMode'
60
59
| 'isDebugDynamicAccesses'
@@ -125,7 +124,6 @@ export function createWorkStore({
125
124
// so that it can access the fs cache without mocks
126
125
renderOpts . incrementalCache || ( globalThis as any ) . __incrementalCache ,
127
126
cacheLifeProfiles : renderOpts . cacheLifeProfiles ,
128
- isRevalidate : renderOpts . isRevalidate ,
129
127
isBuildTimePrerendering : renderOpts . nextExport ,
130
128
hasReadableErrorStacks : renderOpts . hasReadableErrorStacks ,
131
129
fetchCache : renderOpts . fetchCache ,
You can’t perform that action at this time.
0 commit comments