fix frontend redirection
This commit is contained in:
@@ -7,6 +7,16 @@ const nextConfig = {
|
||||
domains: ['res.cloudinary.com'],
|
||||
},
|
||||
transpilePackages: ['@rentaldrivego/types'],
|
||||
async rewrites() {
|
||||
return [
|
||||
{ source: '/marketplace', destination: 'http://localhost:3001/marketplace' },
|
||||
{ source: '/marketplace/:path*', destination: 'http://localhost:3001/marketplace/:path*' },
|
||||
{ source: '/dashboard', destination: 'http://localhost:3002/dashboard' },
|
||||
{ source: '/dashboard/:path*', destination: 'http://localhost:3002/dashboard/:path*' },
|
||||
{ source: '/admin', destination: 'http://localhost:3003/admin' },
|
||||
{ source: '/admin/:path*', destination: 'http://localhost:3003/admin/:path*' },
|
||||
]
|
||||
},
|
||||
}
|
||||
|
||||
module.exports = nextConfig
|
||||
Reference in New Issue
Block a user