chore: 添加本地接口API地址

This commit is contained in:
haoxr 2023-03-25 01:16:44 +08:00
parent 9a297d1986
commit 962ea46c69
1 changed files with 3 additions and 0 deletions

View File

@ -45,7 +45,10 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
// 反向代理解决跨域
proxy: {
[env.VITE_APP_BASE_API]: {
// 线上接口API地址
target: 'http://vapi.youlai.tech',
// 本地接口API地址
//target: 'http://localhost:8989',
changeOrigin: true,
rewrite: path =>
// localhost:3000/dev-api/users/me → http://vapi.youlai.tech/users/me