Skip to content

Commit caf672f

Browse files
committed
config.experimental.turbo.unstablePersistentCaching -> config.experimental.turbopackPersistentCaching
1 parent 36d5799 commit caf672f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/next/src/build/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3739,7 +3739,7 @@ function warnAboutTurbopackBuilds(config?: NextConfigComplete) {
37393739
warningStr +=
37403740
'\n\n- It is expected that your bundle size might be different from `next build` with webpack. This will be improved as we work towards stability.'
37413741

3742-
if (!config?.experimental.turbo?.unstablePersistentCaching) {
3742+
if (!config?.experimental.turbopackPersistentCaching) {
37433743
warningStr +=
37443744
'\n- This build is without disk caching; subsequent builds will become faster when disk caching becomes available.'
37453745
}

packages/next/src/server/config-shared.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,6 @@ export interface TurbopackOptions {
149149
*/
150150
memoryLimit?: number
151151

152-
/**
153-
* Enable persistent caching for the turbopack dev server and build.
154-
*/
155-
unstablePersistentCaching?: boolean
156-
157152
/**
158153
* Enable tree shaking for the turbopack dev server and build.
159154
*/
@@ -386,7 +381,12 @@ export interface ExperimentalConfig {
386381
/**
387382
* @deprecated Use `config.turbopack` instead.
388383
*/
389-
turbo?: TurbopackOptions
384+
turbo?: DeprecatedExperimentalTurboOptions
385+
386+
/**
387+
* Enable persistent caching for the turbopack dev server and build.
388+
*/
389+
turbopackPersistentCaching?: boolean
390390

391391
/**
392392
* For use with `@next/mdx`. Compile MDX files using the new Rust compiler.

packages/next/src/server/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,9 @@ function assignDefaults(
251251
throw new CanaryOnlyError({ feature: 'experimental.ppr' })
252252
} else if (result.experimental?.dynamicIO) {
253253
throw new CanaryOnlyError({ feature: 'experimental.dynamicIO' })
254-
} else if (result.experimental?.turbo?.unstablePersistentCaching) {
254+
} else if (result.experimental?.turbopackPersistentCaching) {
255255
throw new CanaryOnlyError({
256-
feature: 'experimental.turbo.unstablePersistentCaching',
256+
feature: 'experimental.turbopackPersistentCaching',
257257
})
258258
} else if (result.experimental?.nodeMiddleware) {
259259
throw new CanaryOnlyError({ feature: 'experimental.nodeMiddleware' })

0 commit comments

Comments
 (0)