fix frontend redirection

This commit is contained in:
root
2026-05-17 00:59:59 -04:00
parent be98e3e65d
commit f52e53519c
7 changed files with 32 additions and 48 deletions
+10
View File
@@ -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