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
+2 -2
View File
@@ -4,11 +4,11 @@
"private": true,
"scripts": {
"predev": "npm run build --workspace @rentaldrivego/types",
"dev": "next dev -p 3002",
"dev": "next dev -p 3003",
"prebuild": "npm run build --workspace @rentaldrivego/types",
"build": "next build",
"prestart": "npm run build --workspace @rentaldrivego/types",
"start": "next start -p 3002",
"start": "next start -p 3003",
"type-check": "tsc --noEmit"
},
"dependencies": {
+2 -2
View File
@@ -4,11 +4,11 @@
"private": true,
"scripts": {
"predev": "npm run build --workspace @rentaldrivego/types",
"dev": "next dev -p 3001",
"dev": "next dev -p 3002",
"prebuild": "npm run build --workspace @rentaldrivego/types",
"build": "next build",
"prestart": "npm run build --workspace @rentaldrivego/types",
"start": "next start -p 3001",
"start": "next start -p 3002",
"type-check": "tsc --noEmit"
},
"dependencies": {
+2 -2
View File
@@ -4,11 +4,11 @@
"private": true,
"scripts": {
"predev": "npm run build --workspace @rentaldrivego/types",
"dev": "next dev -p 3000",
"dev": "next dev -p 3001",
"prebuild": "npm run build --workspace @rentaldrivego/types",
"build": "next build",
"prestart": "npm run build --workspace @rentaldrivego/types",
"start": "next start -p 3000",
"start": "next start -p 3001",
"type-check": "tsc --noEmit"
},
"dependencies": {
+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
+2 -2
View File
@@ -4,11 +4,11 @@
"private": true,
"scripts": {
"predev": "npm run build --workspace @rentaldrivego/types",
"dev": "next dev -p 3003",
"dev": "next dev -p 3000",
"prebuild": "npm run build --workspace @rentaldrivego/types",
"build": "next build",
"prestart": "npm run build --workspace @rentaldrivego/types",
"start": "next start -p 3003",
"start": "next start -p 3000",
"type-check": "tsc --noEmit"
},
"dependencies": {