Files
next.js/test/e2e/app-dir/rewrite-with-search-params/next.config.js

22 lines
383 B
JavaScript

/**
* @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