引言

Vercel 是一个开箱即用的网站托管平台,方便开发者快速部署自己的网站。它在全球都拥有 CND 节点,因此比 Github 官方自带的 github pages 更加稳定,访问速度更快。

简单的说,它能极简部署应用到服务端,而且是免费不用买服务器。

Vercel官网

注册说明

Vercel 官网(https://vercel.com/)注册一个新账户,注册新用户必须使用`Github`、`Gitlab` 或者 Bitbucket 的账户进行授权。

我第一次使用Github注册的时候报了个错,如下所示:

Error: This user account is blocked. Contact registration@vercel.com For more information.

你只需要按他要求发个邮件给他就行,交流情况如下所示:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Vercel Registration <registration@vercel.com>
2022/11/15 14:12
收件人: zsyyblog@qq.com

Hi there,

Our apologies - your account was flagged by our abuse prevention system. It looks like this was an error.

We have now unblocked your account.

Please let us know if you have any further questions or concerns.

Best,

Sebastian
▲ Senior Customer Success Engineer at Vercel


--------------- Original Message ---------------
From: wa zsdd [zsyyblog@qq.com]
Sent: 11/15/2022, 6:38 AM
To: registration@vercel.com
Subject: This user account is blocked. Contact registration@vercel.com for more information.


Hello

I am very interested in Vercel and would like to learn and use it after registering. But when registering, sytem will be prompted "This user account is blocked. Contact registration@vercel.com For more information. "

What is the reason for this? What can I do to solve this problem?

后来找到了原因:github的主邮箱使用了QQ邮箱。

创建仓库

登陆后,会自动进入Dashboard(即仪表板),然后点击New Project

点击进入下面的Import Third-Party Git Repository,输入自己博客静态文件的Github地址。

1
2
3
Import a Third-Party Git Repository

Enter the URL of a Git repository to deploy it:

输入仓库地址后Vercel会自动Clone源仓库的内容到你设置的repository。

配置完成后点击Deploy,耐心等待即可,可以查看部署的进度,需要稍等一小会……

部署完成后,Vercel会给你重定向。

博客更新

后续只需将最新的博客内容提交到githubVercel会自动从github同步更新,还会收到以下的邮件提醒:

1
2
3
4
5
6
7
8
9
10
vercel[bot] <notifications@github.com>
2022/12/2 10:28

Successfully deployed to the following URLs:
zsyyblog – ./
zsyyblog.vercel.app
zsyyblog-git-master.vercel.app

Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.

设置域名

部署完成后就可以通过userrname.vercel.app来访问博客,也可以在主页点击Settings-Domains添加自定义的域名。

效果预览

本博客的Vercel访问地址:竹山一叶