Commit a70575fc authored by Luke Sandberg's avatar Luke Sandberg

Enable the filesystem cache for dev in canary builds

parent 0baa1f7a
...@@ -409,6 +409,8 @@ export interface ExperimentalConfig { ...@@ -409,6 +409,8 @@ export interface ExperimentalConfig {
/** /**
* Enable filesystem cache for the turbopack dev server. * Enable filesystem cache for the turbopack dev server.
*
* Defaults to `true` in canary releases.
*/ */
turbopackFileSystemCacheForDev?: boolean turbopackFileSystemCacheForDev?: boolean
...@@ -1525,6 +1527,8 @@ export const defaultConfig = Object.freeze({ ...@@ -1525,6 +1527,8 @@ export const defaultConfig = Object.freeze({
proxyClientMaxBodySize: 10_485_760, // 10MB proxyClientMaxBodySize: 10_485_760, // 10MB
hideLogsAfterAbort: false, hideLogsAfterAbort: false,
mcpServer: true, mcpServer: true,
turbopackFileSystemCacheForDev: !isStableBuild(),
turbopackFileSystemCacheForBuild: false,
}, },
htmlLimitedBots: undefined, htmlLimitedBots: undefined,
bundlePagesRouterDependencies: false, bundlePagesRouterDependencies: false,
......
...@@ -400,7 +400,7 @@ function assignDefaultsAndValidate( ...@@ -400,7 +400,7 @@ function assignDefaultsAndValidate(
if (isStableBuild()) { if (isStableBuild()) {
// Prevents usage of certain experimental features outside of canary // Prevents usage of certain experimental features outside of canary
if (result.experimental?.turbopackFileSystemCacheForBuild) { if (result.experimental.turbopackFileSystemCacheForBuild) {
throw new CanaryOnlyConfigError({ throw new CanaryOnlyConfigError({
feature: 'experimental.turbopackFileSystemCacheForBuild', feature: 'experimental.turbopackFileSystemCacheForBuild',
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment