测试vercel反向代理
This commit is contained in:
14
vercel.json
14
vercel.json
@@ -1,14 +1,4 @@
|
|||||||
{
|
{
|
||||||
"rewrites": [
|
|
||||||
{
|
|
||||||
"source": "/api/:path*",
|
|
||||||
"destination": "/api/:path*"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"source": "/:path*",
|
|
||||||
"destination": "/index.html"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routes": [
|
"routes": [
|
||||||
{
|
{
|
||||||
"src": "/api/(.*)",
|
"src": "/api/(.*)",
|
||||||
@@ -21,6 +11,10 @@
|
|||||||
{
|
{
|
||||||
"src": "/ai/(.*)",
|
"src": "/ai/(.*)",
|
||||||
"dest": "https://spark-api-open.xf-yun.com/$1"
|
"dest": "https://spark-api-open.xf-yun.com/$1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/(.*)",
|
||||||
|
"dest": "/index.html"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user