Skip to content

Commit a70575f

Browse files
committed
Enable the filesystem cache for dev in canary builds
1 parent 0baa1f7 commit a70575f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ export interface ExperimentalConfig {
409409

410410
/**
411411
* Enable filesystem cache for the turbopack dev server.
412+
*
413+
* Defaults to `true` in canary releases.
412414
*/
413415
turbopackFileSystemCacheForDev?: boolean
414416

@@ -1525,6 +1527,8 @@ export const defaultConfig = Object.freeze({
15251527
proxyClientMaxBodySize: 10_485_760, // 10MB
15261528
hideLogsAfterAbort: false,
15271529
mcpServer: true,
1530+
turbopackFileSystemCacheForDev: !isStableBuild(),
1531+
turbopackFileSystemCacheForBuild: false,
15281532
},
15291533
htmlLimitedBots: undefined,
15301534
bundlePagesRouterDependencies: false,

packages/next/src/server/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ function assignDefaultsAndValidate(
400400

401401
if (isStableBuild()) {
402402
// Prevents usage of certain experimental features outside of canary
403-
if (result.experimental?.turbopackFileSystemCacheForBuild) {
403+
if (result.experimental.turbopackFileSystemCacheForBuild) {
404404
throw new CanaryOnlyConfigError({
405405
feature: 'experimental.turbopackFileSystemCacheForBuild',
406406
})

0 commit comments

Comments
 (0)