ci: 集成: 🎡 添加pathRewrite

This commit is contained in:
bunny 2024-02-28 20:09:27 +08:00
parent e60684b7c2
commit dda87ac123
1 changed files with 2 additions and 0 deletions

View File

@ -26,10 +26,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: { '^/api': '/api' },
},
},
},