+1
-1
@@ -21,7 +21,7 @@ export default defineConfig({
|
||||
'/api/v1': {
|
||||
target: 'https://h.hifastapp.com',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
autoRewrite: true,
|
||||
// 3. 关键:将路径重写,在前面补上 /api/v1
|
||||
// 验证请求是否进入代理,可以在终端看到打印
|
||||
|
||||
Reference in New Issue
Block a user