准备工作
自行安装
nodejs
具体步骤
安装vercel-cli
npm i -g vercel登录
vercel login新建
新建一个web.json文件并编辑以下内容
{
"version": 2,
"routes": [
{"src": "/(.*)","dest": "https://class.imsun.org"}
]
}部署
vercel -A web.json --prodnodejs
npm i -g vercelvercel login新建一个web.json文件并编辑以下内容
{
"version": 2,
"routes": [
{"src": "/(.*)","dest": "https://class.imsun.org"}
]
}vercel -A web.json --prod