配置vercel反向代理
This commit is contained in:
14
vercel.json
14
vercel.json
@@ -4,5 +4,19 @@
|
|||||||
"source": "/:path*",
|
"source": "/:path*",
|
||||||
"destination": "/index.html"
|
"destination": "/index.html"
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"routes": [
|
||||||
|
{
|
||||||
|
"src": "/api/(.*)",
|
||||||
|
"dest": "https://openapi.baidu.com/$1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/qiniu/(.*)",
|
||||||
|
"dest": "https://rsf.qiniuapi.com/$1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/ai/(.*)",
|
||||||
|
"dest": "https://spark-api-open.xf-yun.com/$1"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user