docs: 增加部署到vercel后api跨域的解决方法

This commit is contained in:
qier222 2021-09-25 12:52:00 +08:00
parent b052b462e3
commit cc914d4799
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
3 changed files with 29 additions and 7 deletions

8
vercel.example.json Normal file
View file

@ -0,0 +1,8 @@
{
"rewrites": [
{
"source": "/api/:match*",
"destination": "https://your-netease-api.example.com/:match*"
}
]
}