Unverified Commit 5c9706ed authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

Enable `experimental.serverComponentsHmrCache` by default (#67800)

The target release for the [server components HMR
cache](https://github.com/vercel/next.js/pull/67527) feature is 15, so
we want to enable it already for canaries.
parent bbcd14ee
......@@ -1007,7 +1007,7 @@ export const defaultConfig: NextConfig = {
reactCompiler: undefined,
after: false,
staticGenerationRetryCount: undefined,
serverComponentsHmrCache: false,
serverComponentsHmrCache: true,
},
bundlePagesRouterDependencies: false,
}
......
......@@ -4,7 +4,7 @@
const nextConfig = {
experimental: {
after: true,
serverComponentsHmrCache: true,
// serverComponentsHmrCache: false,
},
}
......
......@@ -81,12 +81,12 @@ describe('server-components-hmr-cache', () => {
})
})
describe('with experimental.serverComponentsHmrCache not enabled', () => {
describe('with experimental.serverComponentsHmrCache disabled', () => {
beforeAll(async () => {
await next.patchFile('next.config.js', (content) =>
content.replace(
'serverComponentsHmrCache: true,',
'// serverComponentsHmrCache: true,'
'// serverComponentsHmrCache: false,',
'serverComponentsHmrCache: false,'
)
)
})
......@@ -94,8 +94,8 @@ describe('server-components-hmr-cache', () => {
afterAll(async () => {
await next.patchFile('next.config.js', (content) =>
content.replace(
'// serverComponentsHmrCache: true,',
'serverComponentsHmrCache: true,'
'serverComponentsHmrCache: false,',
'// serverComponentsHmrCache: false,'
)
)
})
......
......@@ -1691,14 +1691,14 @@
"server-components-hmr-cache edge runtime in after() should use cached fetch calls for fast refresh requests",
"server-components-hmr-cache edge runtime should not use cached fetch calls for intentional refresh requests",
"server-components-hmr-cache edge runtime should use cached fetch calls for fast refresh requests",
"server-components-hmr-cache edge runtime with experimental.serverComponentsHmrCache not enabled in after() should not use cached fetch calls for fast refresh requests",
"server-components-hmr-cache edge runtime with experimental.serverComponentsHmrCache not enabled should not use cached fetch calls for fast refresh requests",
"server-components-hmr-cache edge runtime with experimental.serverComponentsHmrCache disabled in after() should not use cached fetch calls for fast refresh requests",
"server-components-hmr-cache edge runtime with experimental.serverComponentsHmrCache disabled should not use cached fetch calls for fast refresh requests",
"server-components-hmr-cache node runtime in after() should not use cached fetch calls for intentional refresh requests",
"server-components-hmr-cache node runtime in after() should use cached fetch calls for fast refresh requests",
"server-components-hmr-cache node runtime should not use cached fetch calls for intentional refresh requests",
"server-components-hmr-cache node runtime should use cached fetch calls for fast refresh requests",
"server-components-hmr-cache node runtime with experimental.serverComponentsHmrCache not enabled in after() should not use cached fetch calls for fast refresh requests",
"server-components-hmr-cache node runtime with experimental.serverComponentsHmrCache not enabled should not use cached fetch calls for fast refresh requests"
"server-components-hmr-cache node runtime with experimental.serverComponentsHmrCache disabled in after() should not use cached fetch calls for fast refresh requests",
"server-components-hmr-cache node runtime with experimental.serverComponentsHmrCache disabled should not use cached fetch calls for fast refresh requests"
],
"failed": [],
"pending": [],
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