4
Vercel 部署前端站点
source link: https://www.zhangyangyuan.com/notebook/107529
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
这里以 vuepress 为例
在 github 创建代码仓库
比如 https://github.com/Jansora/doc-mysql
初始化 vuepress 工程并提交代码
see https://v2.vuepress.vuejs.org/zh/guide/getting-started.htm
配置 vercel
请使用 github 登录 vercel
- New Project
- 选中需要导入的 vercel
- 修改图示部分
-
deploy.
-
点击vercel 提供的域名打开
- 大功告成, 后续推送代码会自动触发 vercel 自动构建流程
如何绑定自定义域名 ?
将你需要映射的范域名映射到 cname.vercel-dns.com.
比如我这里选择的是映射 doc 下的通配符. 见图所示
配置自定义域名
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK