mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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 -->
33 lines
603 B
JavaScript
33 lines
603 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
const nextConfig = {
|
|
experimental: {
|
|
prefetchInlining: false,
|
|
useCache: true,
|
|
},
|
|
rewrites: async () => {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: '/:first/~/overview/:path*',
|
|
destination: '/404',
|
|
},
|
|
{
|
|
source: '/:first',
|
|
has: [
|
|
{
|
|
type: 'cookie',
|
|
key: 'overview-param',
|
|
value: 'grid',
|
|
},
|
|
],
|
|
destination: '/:first/~/overview/grid',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
}
|
|
|
|
module.exports = nextConfig
|