feat: 部署环境配置

This commit is contained in:
TsMask committed 2023-10-10 14:49:29 +08:00
1 parent 1472991c83
commit de680e467b
4 files changed
+13 -5

No files matched your search

+2 -2
View File
@@ -20,8 +20,8 @@ export default defineConfig(({ mode }) => {
proxy: {
// https://cn.vitejs.dev/config/#server-proxy
[env.VITE_API_BASE_URL]: {
//target: 'http://192.168.2.119:3030/api/rest',
target: 'http://192.168.2.114:3040/api/rest',
// target: 'http://192.168.0.222:3186/api/rest',
target: 'http://192.168.30.54:3040/api/rest',
changeOrigin: true,
rewrite: p => p.replace(/^\/dev-api/, ''),
},