Skip to content

Commit 3582828

Browse files
committed
Release turbopackFileSystemCacheForBuild to stable builds
1 parent a70575f commit 3582828

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export interface ExperimentalConfig {
410410
/**
411411
* Enable filesystem cache for the turbopack dev server.
412412
*
413-
* Defaults to `true` in canary releases.
413+
* Defaults to `true`.
414414
*/
415415
turbopackFileSystemCacheForDev?: boolean
416416

@@ -1527,7 +1527,7 @@ export const defaultConfig = Object.freeze({
15271527
proxyClientMaxBodySize: 10_485_760, // 10MB
15281528
hideLogsAfterAbort: false,
15291529
mcpServer: true,
1530-
turbopackFileSystemCacheForDev: !isStableBuild(),
1530+
turbopackFileSystemCacheForDev: true,
15311531
turbopackFileSystemCacheForBuild: false,
15321532
},
15331533
htmlLimitedBots: undefined,

packages/next/src/server/config.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ import { dset } from '../shared/lib/dset'
3838
import { normalizeZodErrors } from '../shared/lib/zod'
3939
import { HTML_LIMITED_BOT_UA_RE_STRING } from '../shared/lib/router/utils/is-bot'
4040
import { findDir } from '../lib/find-pages-dir'
41-
import {
42-
CanaryOnlyConfigError,
43-
isStableBuild,
44-
} from '../shared/lib/errors/canary-only-config-error'
4541
import { interopDefault } from '../lib/interop-default'
4642
import { djb2Hash } from '../shared/lib/hash'
4743
import type { NextAdapter } from '../build/adapter/build-complete'
@@ -398,15 +394,6 @@ function assignDefaultsAndValidate(
398394
)
399395
}
400396

401-
if (isStableBuild()) {
402-
// Prevents usage of certain experimental features outside of canary
403-
if (result.experimental.turbopackFileSystemCacheForBuild) {
404-
throw new CanaryOnlyConfigError({
405-
feature: 'experimental.turbopackFileSystemCacheForBuild',
406-
})
407-
}
408-
}
409-
410397
if (result.experimental.ppr) {
411398
throw new HardDeprecatedConfigError(
412399
`\`experimental.ppr\` has been merged into \`cacheComponents\`. The Partial Prerendering feature is still available, but is now enabled via \`cacheComponents\`. Please update your ${configFileName} accordingly.`

0 commit comments

Comments
 (0)