3

关闭 Vercel 的部署结果通知

 1 year ago
source link: https://www.boris1993.com/disable-vercel-deployment-notification.html
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.
neoserver,ios ssh client

关闭 Vercel 的部署结果通知

2023-02-02 2023-02-03小技巧

0

每次 Vercel 部署之后,它都会在部署的 commit 下面发个类似这样的留言:

Successfully deployed to the following URLs:

blog – ./


blog-boris1993.vercel.app

boris1993.com

www.boris1993.com

而且 GitHub 还会给我发邮件通知这个留言的内容,但是这个消息说实话没啥用,白白麻烦人而已,后来发现,在项目根目录创建一个名为 vercel.json 的文件,里面写上这样的配置就行:

{
"github": {
"silent": true
}
}

这个配置的作用就是让 Vercel 不再往这个 repo 的 commit 下面评论部署状态。提交之后,Vercel 就会在这次部署开始遵循 vercel.json 的设定,不会再发送评论,自然也就不会有那封 “骚扰邮件” 了。

y4m9xNVYyq5hftWQNLViI8W6lejS3lrae9GsitNSk4WvcblzYGttzSx9xmX-rmB4Y268bR88bq8L83pgvputgP2ymRR7W23v_4eGvoTKB4HldW92ZUIJ64Rcr2gLljZDtLgjY94y7o8ck_ZBP8aR4xH6XX8KZcExXcs8qMu24MijGtDzBbgnY5le8Mcx_QSjX-3?width=2368&height=624&cropmode=none
Buy me a coffee

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK