4

Vercel 部署前端站点

 1 year ago
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

  1. New Project

image.png

  1. 选中需要导入的 vercel

image.png

  1. 修改图示部分

image.png

  1. deploy.

  2. 点击vercel 提供的域名打开

image.png

  1. 大功告成, 后续推送代码会自动触发 vercel 自动构建流程

如何绑定自定义域名 ?

将你需要映射的范域名映射到 cname.vercel-dns.com.

比如我这里选择的是映射 doc 下的通配符. 见图所示

image.png

配置自定义域名

image.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK