Merge pull request 'fix : 修复vite.config.js' (#37) from dj into master
Reviewed-on: http://git.feashow.cn/feashow/SmartOpsWeb/pulls/37
This commit is contained in:
@@ -76,11 +76,16 @@ export default defineConfig({
|
|||||||
// rewrite: (path) => path.replace(/^\/api/, ""),
|
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||||
// },
|
// },
|
||||||
"/api": {
|
"/api": {
|
||||||
// target: "http://192.168.31.176:9010",
|
// target: "http://frp.feashow.cn:31800/",
|
||||||
target: "http://frp.feashow.cn:31800/",
|
target: "http://112.19.165.99:20002/",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
rewrite: (path) => path.replace(/^\/api/, ""),
|
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||||
}
|
},
|
||||||
|
// "/socket": {
|
||||||
|
// target: "ws://frp.feashow.cn:8081/ws",
|
||||||
|
// changeOrigin: true,
|
||||||
|
// rewrite: (path) => path.replace(/^\/api/, ""),
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user