mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
22 lines
383 B
JavaScript
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
|