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