提交尝鲜价套餐
site-dist-deploy / build-and-deploy (push) Successful in 1m44s

This commit is contained in:
2026-03-20 14:30:23 +02:00
parent a350863a3e
commit fb7e5031c8
7 changed files with 211 additions and 26 deletions
+2 -2
View File
@@ -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,
// 3. 关键:将路径重写,在前面补上 /api/v1
},