测试vercel反向代理

This commit is contained in:
Liu 宇阳
2024-10-28 14:12:29 +08:00
parent f5a4e5540b
commit d3026efaa8

View File

@@ -1,14 +1,4 @@
{
"rewrites": [
{
"source": "/api/:path*",
"destination": "/api/:path*"
},
{
"source": "/:path*",
"destination": "/index.html"
}
],
"routes": [
{
"src": "/api/(.*)",
@@ -21,6 +11,10 @@
{
"src": "/ai/(.*)",
"dest": "https://spark-api-open.xf-yun.com/$1"
},
{
"src": "/(.*)",
"dest": "/index.html"
}
]
}