如何用vercel部署同款blog
两分钟使用 Vercel 免费部署你的静态网站_哔哩哔哩_bilibili
按照视频操作,然后把插件导出的文件复制到你的github仓库根目录
GitHub - Ryanu9/myblog: myblog (这是我仓库的根目录文件列表)
其中有一个 vercel.json 需要你自己创建,里面可以用于控制默认页面,以及404跳转信息
你可以参考我的配置
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"routes": [
{
"src": "^/$",
>>>> "dest": "/00-home/blog/webpage-html-export-pro.html"
},
{
"handle": "filesystem"
},
{
"src": "/(.*)",
"status": 404,
"dest": "/404/"
}
]
}