Commit 3feffe96 authored by Luke Sandberg's avatar Luke Sandberg

Release turbopackFileSystemCacheForBuild to stable builds

parent 7fb1093d
...@@ -410,7 +410,7 @@ export interface ExperimentalConfig { ...@@ -410,7 +410,7 @@ 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. * Defaults to `true`.
*/ */
turbopackFileSystemCacheForDev?: boolean turbopackFileSystemCacheForDev?: boolean
...@@ -1527,7 +1527,7 @@ export const defaultConfig = Object.freeze({ ...@@ -1527,7 +1527,7 @@ 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(), turbopackFileSystemCacheForDev: true,
turbopackFileSystemCacheForBuild: false, turbopackFileSystemCacheForBuild: false,
}, },
htmlLimitedBots: undefined, htmlLimitedBots: undefined,
......
...@@ -38,10 +38,6 @@ import { dset } from '../shared/lib/dset' ...@@ -38,10 +38,6 @@ import { dset } from '../shared/lib/dset'
import { normalizeZodErrors } from '../shared/lib/zod' import { normalizeZodErrors } from '../shared/lib/zod'
import { HTML_LIMITED_BOT_UA_RE_STRING } from '../shared/lib/router/utils/is-bot' import { HTML_LIMITED_BOT_UA_RE_STRING } from '../shared/lib/router/utils/is-bot'
import { findDir } from '../lib/find-pages-dir' import { findDir } from '../lib/find-pages-dir'
import {
CanaryOnlyConfigError,
isStableBuild,
} from '../shared/lib/errors/canary-only-config-error'
import { interopDefault } from '../lib/interop-default' import { interopDefault } from '../lib/interop-default'
import { djb2Hash } from '../shared/lib/hash' import { djb2Hash } from '../shared/lib/hash'
import type { NextAdapter } from '../build/adapter/build-complete' import type { NextAdapter } from '../build/adapter/build-complete'
...@@ -398,15 +394,6 @@ function assignDefaultsAndValidate( ...@@ -398,15 +394,6 @@ function assignDefaultsAndValidate(
) )
} }
if (isStableBuild()) {
// Prevents usage of certain experimental features outside of canary
if (result.experimental.turbopackFileSystemCacheForBuild) {
throw new CanaryOnlyConfigError({
feature: 'experimental.turbopackFileSystemCacheForBuild',
})
}
}
if (result.experimental.ppr) { if (result.experimental.ppr) {
throw new HardDeprecatedConfigError( throw new HardDeprecatedConfigError(
`\`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.` `\`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.`
......
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