Files
vercel__next.js/test/e2e/app-dir/app-static/next.config.js
Andrew Clark 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

36 lines
770 B
JavaScript

/** @type {import('next').NextConfig} */
module.exports = {
experimental: {
prefetchInlining: false,
},
logging: {
fetches: {},
},
cacheLife: {
expireNow: {
stale: 0,
expire: 0,
revalidate: 0,
},
},
cacheHandler: process.env.CUSTOM_CACHE_HANDLER
? require.resolve('./cache-handler.js')
: undefined,
rewrites: async () => {
return {
// beforeFiles: [ { source: '/assets/:path*', destination: '/:path*' } ],
afterFiles: [
{
source: '/rewritten-use-search-params',
destination: '/hooks/use-search-params/with-suspense',
},
{
source: '/rewritten-use-pathname',
destination: '/hooks/use-pathname/slug',
},
],
}
},
}