持续集成:支持本地开发服务器代理自定义重写路径

This commit is contained in:
wangzhibiao committed 2026-09-20 11:34:11 +08:00
1 parent 01dfa9f386
commit ca3f857d3c
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ module.exports = {
target: process.env.VUE_APP_BACKEND_URL || 'http://127.0.0.1:8096',
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
['^' + process.env.VUE_APP_BASE_API]: process.env.VUE_APP_BACKEND_PATH !== undefined ? process.env.VUE_APP_BACKEND_PATH : ''
}
}
},