mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
b301d3cfab
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 -->
36 lines
770 B
JavaScript
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',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
}
|