chore(vite.config.ts): 线上代理地址路径修改
This commit is contained in:
parent
7a67e6b93a
commit
7f10b63480
|
|
@ -25,7 +25,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
|||
open: true, // 运行自动打开浏览器
|
||||
proxy: {
|
||||
[env.VITE_APP_BASE_API]: {
|
||||
target: 'http://localhost:8989',
|
||||
target: 'http://sapi.youlai.tech',
|
||||
changeOrigin: true,
|
||||
rewrite: path =>
|
||||
path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')
|
||||
|
|
|
|||
Loading…
Reference in New Issue