提交
This commit is contained in:
1 parent
22be6d8b36
commit
ec4b9438b4
79 files changed
+12607
-8922
No files matched your search
@@ -34,15 +34,15 @@ export default ({ mode }: { mode: string }) => {
|
||||
target: VITE_API_PROXY_URL,
|
||||
changeOrigin: true
|
||||
},
|
||||
// Web端接口代理 - 转发到后端 /api 前缀
|
||||
// Web端接口代理 - 转发到后端 /api 前缀(与 /api 一致走本地 backend)
|
||||
'/web': {
|
||||
target: 'http://192.168.2.178:8000/api',
|
||||
target: VITE_API_PROXY_URL,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => `/api${path}`
|
||||
},
|
||||
// 小程序端接口代理
|
||||
'/mini': {
|
||||
target: 'http://192.168.2.178:8000/api',
|
||||
target: VITE_API_PROXY_URL,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => `/api${path}`
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user