ci: 集成: 🎡 添加pathRewrite

This commit is contained in:
bunny 2024-02-28 20:11:08 +08:00
parent da902e6f1f
commit 93264d94b7
1 changed files with 2 additions and 0 deletions

View File

@ -27,10 +27,12 @@ module.exports = defineConfig({
'/api': {
target: process.env.VUE_APP_URL,
changeOrigin: true,
pathRewrite: { '^/api': '/api' },
},
'/mock': {
target: process.env.VUE_APP_URL,
changeOrigin: true,
pathRewrite: { '^/mock': '' },
},
},
},