File tree 2 files changed +29
-0
lines changed
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,15 @@ export interface ExperimentalConfig {
178
178
optimisticClientCache ?: boolean
179
179
middlewarePrefetch ?: 'strict' | 'flexible'
180
180
manualClientBasePath ?: boolean
181
+ /**
182
+ * @deprecated use config.cacheHandler instead
183
+ */
184
+ incrementalCacheHandlerPath ?: string
185
+ /**
186
+ * @deprecated use config.cacheMaxMemorySize instead
187
+ *
188
+ */
189
+ isrMemoryCacheSize ?: number
181
190
disablePostcssPresetEnv ?: boolean
182
191
swcMinify ?: boolean
183
192
cpus ?: number
Original file line number Diff line number Diff line change @@ -456,6 +456,26 @@ function assignDefaults(
456
456
}
457
457
}
458
458
459
+ if ( result . experimental ?. incrementalCacheHandlerPath ) {
460
+ // TODO: Remove this warning in Next.js 15
461
+ warnOptionHasBeenDeprecated (
462
+ result ,
463
+ 'experimental.incrementalCacheHandlerPath' ,
464
+ 'The "experimental.incrementalCacheHandlerPath" option has been renamed to "cacheHandler". Please update your next.config.js.' ,
465
+ silent
466
+ )
467
+ }
468
+
469
+ if ( result . experimental ?. isrMemoryCacheSize ) {
470
+ // TODO: Remove this warning in Next.js 15
471
+ warnOptionHasBeenDeprecated (
472
+ result ,
473
+ 'experimental.isrMemoryCacheSize' ,
474
+ 'The "experimental.isrMemoryCacheSize" option has been renamed to "cacheMaxMemorySize". Please update your next.config.js.' ,
475
+ silent
476
+ )
477
+ }
478
+
459
479
if ( typeof result . experimental ?. serverActions === 'boolean' ) {
460
480
// TODO: Remove this warning in Next.js 15
461
481
warnOptionHasBeenDeprecated (
You can’t perform that action at this time.
0 commit comments