next.js/test/e2e/app-dir/rewrite-with-search-params/next.config.js
next.config.js22 lines383 B
/**
 * @type {import('next').NextConfig}
 */
const nextConfig = {
  async rewrites() {
    return [
      {
        source: '/:path((?!sitemap.xml$).*)',
        has: [
          {
            type: 'host',
            value: '(?<subdomain>[^.]+)\\.(?<domain>.*)',
          },
        ],
        destination: '/:subdomain/:path*',
      },
    ]
  },
}

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