fix: build

This commit is contained in:
xingyu
2022-12-06 00:29:17 +08:00
parent e255d512cd
commit 039f4a0d11
4 changed files with 94 additions and 17 deletions

View File

@ -33,11 +33,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
open: env.VITE_OPEN,
// 本地跨域代理
proxy: {
['/dev-api']: {
['/admin-api']: {
target: env.VITE_BASE_URL,
ws: false,
changeOrigin: true,
rewrite: (path) => path.replace(new RegExp(`^/dev-api`), ''),
rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
},
},
},