next.js/test/e2e/app-dir/segment-cache/metadata/next.config.js
next.config.js21 lines431 B
/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  cacheComponents: true,
  async rewrites() {
    return [
      {
        source: '/rewrite-to-page-with-dynamic-head',
        destination: '/page-with-dynamic-head',
      },
      {
        source: '/rewrite-to-page-with-runtime-prefetchable-head',
        destination: '/page-with-runtime-prefetchable-head',
      },
    ]
  },
}

module.exports = nextConfig
Quest for Codev2.0.0
/
SIGN IN