chore: 添加本地接口API地址
Former-commit-id: 962ea46c693e78dedce1702a94ec84e541e474c4
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user