Browse Source

feat: config 本地调试

feature-v1.0.0
邱伟洋 1 month ago
parent
commit
086237925a
  1. 12
      vite.config.ts

12
vite.config.ts

@ -84,12 +84,12 @@ export default defineConfig(({ mode }) => {
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/iserver/, "/iserver"),
},
// "/api/run": {
// // target: "http://shuili.product.dev.com:30115/",
// target: "http://172.16.34.80:18082",
// changeOrigin: true,
// rewrite: (path) => path.replace(/^\/api/, "/tianhui-admin-web"),
// },
"/api/run": {
// target: "http://shuili.product.dev.com:30115/",
target: "http://172.16.34.80:18082",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, "/tianhui-admin-web"),
},
"/api": {
target: "http://shuili.product.dev.com:30115", // 'http://172.16.34.59:18083'
changeOrigin: true,

Loading…
Cancel
Save