mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
85c3d20a91
This moves `experimental.cacheComponents` to a top level config. As part of this, I disabled some tests in `build-output-prerender` that assert on `cacheComponents` appearing in the experimental list. In a separate PR, I'm going to show that Cache Components is enabled next to the bundler info. This also updates some docs pages to remove "experimental" language.
21 lines
309 B
JavaScript
21 lines
309 B
JavaScript
/**
|
|
* @type {import('next').NextConfig}
|
|
*/
|
|
|
|
const nextConfig = {
|
|
assetPrefix: '/assets',
|
|
rewrites() {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: '/assets/:path*',
|
|
destination: '/:path*',
|
|
},
|
|
],
|
|
}
|
|
},
|
|
cacheComponents: true,
|
|
}
|
|
|
|
module.exports = nextConfig
|