chore(vite.config.ts): 线上代理地址路径修改

Former-commit-id: 7f10b6348036279f2b43d681083d3fe6a73b5ff9
This commit is contained in:
horizons committed 2022-10-24 23:20:29 +08:00
1 parent a421a24d89
commit 5225cd4809
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
open: true, // 运行自动打开浏览器 open: true, // 运行自动打开浏览器
proxy: { proxy: {
[env.VITE_APP_BASE_API]: { [env.VITE_APP_BASE_API]: {
target: 'http://localhost:8989', target: 'http://sapi.youlai.tech',
changeOrigin: true, changeOrigin: true,
rewrite: path => rewrite: path =>
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '') path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')