feat: initial commit
This commit is contained in:
22
next.config.mjs
Normal file
22
next.config.mjs
Normal file
@@ -0,0 +1,22 @@
|
||||
import { withPayload } from '@payloadcms/next/withPayload'
|
||||
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
// Your Next.js config here
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/((?!admin|api))tenant-domains/:path*',
|
||||
destination: '/tenant-domains/:tenant/:path*',
|
||||
has: [
|
||||
{
|
||||
type: 'host',
|
||||
value: '(?<tenant>.*)',
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
export default withPayload(nextConfig)
|
||||
Reference in New Issue
Block a user