+2
-2
@@ -19,9 +19,9 @@ export default defineConfig({
|
||||
// 将所有以 /api 开头的请求转发到目标服务器
|
||||
// 1. 匹配所有以 /public 开头的请求
|
||||
'/api/v1': {
|
||||
target: 'https://hifastvpn.com',
|
||||
target: 'https://tapi.hifast.biz/',
|
||||
changeOrigin: true,
|
||||
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
autoRewrite: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user