|
@@ -44,14 +44,14 @@ export default defineConfig({
|
|
proxy: {
|
|
proxy: {
|
|
"/api": {
|
|
"/api": {
|
|
target: dev
|
|
target: dev
|
|
- ? "http://192.168.0.135:14000"
|
|
|
|
|
|
+ ? "http://192.168.50.101:14000"
|
|
: "https://mix3d.4dkankan.com",
|
|
: "https://mix3d.4dkankan.com",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/api`), ""),
|
|
rewrite: (path) => path.replace(new RegExp(`^/api`), ""),
|
|
},
|
|
},
|
|
"/fusion": {
|
|
"/fusion": {
|
|
target: dev
|
|
target: dev
|
|
- ? "https://test-mix3d.4dkankan.com"
|
|
|
|
|
|
+ ? "http://192.168.50.101:14000"
|
|
: "https://mix3d.4dkankan.com",
|
|
: "https://mix3d.4dkankan.com",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(new RegExp(`^/api`), "/fusion"),
|
|
rewrite: (path) => path.replace(new RegExp(`^/api`), "/fusion"),
|
|
@@ -59,16 +59,17 @@ export default defineConfig({
|
|
"/dev-code": {
|
|
"/dev-code": {
|
|
// target: "https://localhost:7173/",
|
|
// target: "https://localhost:7173/",
|
|
target: dev
|
|
target: dev
|
|
- ? "https://test-mix3d.4dkankan.com/code"
|
|
|
|
|
|
+ ? "http://192.168.50.101:14000/code"
|
|
: "https://mix3d.4dkankan.com/code",
|
|
: "https://mix3d.4dkankan.com/code",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
secure: false,
|
|
secure: false,
|
|
rewrite: (path) => path.replace(new RegExp(`^/dev-code`), ""),
|
|
rewrite: (path) => path.replace(new RegExp(`^/dev-code`), ""),
|
|
},
|
|
},
|
|
"/swkk": {
|
|
"/swkk": {
|
|
- target: dev ? "https://test.4dkankan.com" : "https://www.4dkankan.com",
|
|
|
|
|
|
+ target: dev
|
|
|
|
+ ? "http://192.168.50.101:14000/swkk"
|
|
|
|
+ : "https://www.4dkankan.com",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
- rewrite: (path) => path.replace(new RegExp(`^/swkk`), ""),
|
|
|
|
},
|
|
},
|
|
"/service": {
|
|
"/service": {
|
|
target: dev ? "https://test.4dkankan.com" : "https://www.4dkankan.com",
|
|
target: dev ? "https://test.4dkankan.com" : "https://www.4dkankan.com",
|
|
@@ -76,10 +77,9 @@ export default defineConfig({
|
|
},
|
|
},
|
|
"/swss": {
|
|
"/swss": {
|
|
target: dev
|
|
target: dev
|
|
- ? "https://uat-laser.4dkankan.com/uat"
|
|
|
|
|
|
+ ? "http://192.168.50.101:14000/swss"
|
|
: "https://laser.4dkankan.com",
|
|
: "https://laser.4dkankan.com",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
- rewrite: (path) => path.replace(new RegExp(`^/swss`), ""),
|
|
|
|
},
|
|
},
|
|
"/laser": {
|
|
"/laser": {
|
|
target: dev
|
|
target: dev
|
|
@@ -93,7 +93,7 @@ export default defineConfig({
|
|
? "https://uat-laser.4dkankan.com/uat"
|
|
? "https://uat-laser.4dkankan.com/uat"
|
|
: "https://laser.4dkankan.com",
|
|
: "https://laser.4dkankan.com",
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
- rewrite: (path) => path.replace(new RegExp(`^/swss`), ""),
|
|
|
|
|
|
+ rewrite: (path) => path.replace(new RegExp(`^/swss`), "/swss"),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|