Unverified Commit b301d3cf authored by Andrew Clark's avatar Andrew Clark Committed by GitHub

Enable prefetchInlining by default (#92863)

Flips the `experimental.prefetchInlining` default from `false` to
`true`. This is the first step toward removing the flag entirely.

Tests that explicitly set `prefetchInlining: true` have been cleaned up
since they now match the default. Any CI failures from this PR will be
addressed in follow-up PRs by temporarily opting out individual tests
with `prefetchInlining: false` until they are migrated.

<!-- NEXT_JS_LLM_PR -->
parent ce33784b
......@@ -1843,7 +1843,7 @@ export const defaultConfig = Object.freeze({
useOffline: false,
unstableIO: false,
varyParams: false,
prefetchInlining: false,
prefetchInlining: true,
preloadEntriesOnStart: true,
clientRouterFilter: true,
clientRouterFilterRedirects: false,
......
......@@ -3,6 +3,9 @@ const nextConfig = {
output: 'export',
trailingSlash: true,
// distDir: '.next-custom',
experimental: {
prefetchInlining: false,
},
}
module.exports = nextConfig
......@@ -3,6 +3,7 @@ import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
productionBrowserSourceMaps: true,
experimental: {
prefetchInlining: false,
serverSourceMaps: true,
},
}
......
/** @type {import('next').NextConfig} */
module.exports = {
experimental: {
prefetchInlining: false,
},
logging: {
fetches: {},
},
......
......@@ -7,6 +7,7 @@ const nextConfig = {
// Enable the testing API in production builds for these tests
exposeTestingApiInProductionBuild: true,
instantNavigationDevToolsToggle: true,
prefetchInlining: false,
},
}
......
......@@ -6,6 +6,7 @@ const nextConfig = {
experimental: {
exposeTestingApiInProductionBuild: true,
instantNavigationDevToolsToggle: true,
prefetchInlining: false,
},
}
......
......@@ -5,6 +5,7 @@ const nextConfig: NextConfig = {
productionBrowserSourceMaps: true,
experimental: {
cachedNavigations: true,
prefetchInlining: false,
exposeTestingApiInProductionBuild: true,
instantNavigationDevToolsToggle: true,
optimisticRouting: true,
......
......@@ -5,6 +5,7 @@ const nextConfig = {
cacheComponents: true,
experimental: {
dynamicOnHover: true,
prefetchInlining: false,
},
}
......
......@@ -4,6 +4,9 @@
const nextConfig = {
cacheComponents: true,
productionBrowserSourceMaps: true,
experimental: {
prefetchInlining: false,
},
}
module.exports = nextConfig
......@@ -3,6 +3,9 @@
*/
const nextConfig = {
cacheComponents: true,
experimental: {
prefetchInlining: false,
},
}
module.exports = nextConfig
......@@ -12,6 +12,7 @@ const nextConfig = {
//
// Once the client cache writes segment data during navigations more
// broadly, this test could be rewritten without this config.
prefetchInlining: false,
staleTimes: {
dynamic: 180,
},
......
......@@ -4,7 +4,6 @@
const nextConfig = {
cacheComponents: true,
experimental: {
prefetchInlining: true,
optimisticRouting: true,
},
}
......
......@@ -12,6 +12,7 @@ const nextConfig = {
},
experimental: {
optimisticRouting: true,
prefetchInlining: false,
varyParams: true,
},
}
......
......@@ -5,6 +5,7 @@ const nextConfig = {
cacheComponents: true,
experimental: {
optimisticRouting: true,
prefetchInlining: false,
varyParams: true,
},
}
......
......@@ -3,6 +3,7 @@
*/
const nextConfig = {
experimental: {
prefetchInlining: false,
useCache: true,
},
rewrites: async () => {
......
......@@ -8,7 +8,6 @@ const nextConfig = {
varyParams: true,
optimisticRouting: true,
cachedNavigations: true,
prefetchInlining: true,
},
}
......
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