Files
next.js/test/e2e/app-dir/sub-shell-generation-middleware/next.config.js
Andrew ClarkandGitHub b301d3cfab 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 -->
2026-04-16 14:20:34 -04:00

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