|
@@ -19,9 +19,14 @@ export default defineConfig({
|
|
|
cert: fs.readFileSync("./cert/6353984_jpcj-h5.zzxcx.net.pem"),
|
|
|
},
|
|
|
proxy: {
|
|
|
- "/prod-api": {
|
|
|
+ "/dev-api": {
|
|
|
target: "http://192.168.8.213:8080/twzd-admin",
|
|
|
changeOrigin: true,
|
|
|
+ rewrite: (path) => path.replace(/^\/dev-api/, ""),
|
|
|
+ },
|
|
|
+ "/prod-api": {
|
|
|
+ target: "http://1.15.29.64:8080/twzd-admin",
|
|
|
+ changeOrigin: true,
|
|
|
rewrite: (path) => path.replace(/^\/prod-api/, ""),
|
|
|
},
|
|
|
},
|