Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a70575fc
Commit
a70575fc
authored
Nov 08, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable the filesystem cache for dev in canary builds
parent
0baa1f7a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
config-shared.ts
packages/next/src/server/config-shared.ts
+4
-0
config.ts
packages/next/src/server/config.ts
+1
-1
No files found.
packages/next/src/server/config-shared.ts
View file @
a70575fc
...
@@ -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
,
...
...
packages/next/src/server/config.ts
View file @
a70575fc
...
@@ -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'
,
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment