This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan
This static blog is now ActivityPub enabled (more soon). ActivityPub is a push based protocol meaning that I need to send a "Create Note" ActivityStream message to every person who follows my account. That means I need to know when my site has just been deployed so I can then send the messages.
Unfortunately, right now the Vercel platform doesn't let you register to receive "Deployment Successful" events directly in your project. Integrations however can listen to project related events. So I created one.
github.com/PaulKinlan/vercel-post-deploy-webhook is a simple Vercel Integration that lets you configure custom webhooks for deployment related events for each of your projects.
Once installed you can add it to your organisation or projects in Vercel and then configure a webhook endpoint of your choice that will be called with a HTTP POST
.
It is not published in the Vercel Integration Marketplace and I don't intend to launch it as a product. It should be a feature of the platform (ihmo).
I hope this project can serve as inspiration for building your own should you need to automate anything one once a project is deployed.
Set up
- You need to use Firebase Firestore to store the configuration.
- You need to deploy this integration on Vercel
- You need to set up a Marketplace entry so that you can add it to your projects
- You need to configure the webhooks that you want to handle.
This content originally appeared on Modern Web Development with Chrome and was authored by Paul Kinlan
Paul Kinlan | Sciencx (2022-12-13T20:44:13+00:00) Post Deploy Webhook for Vercel. Retrieved from https://www.scien.cx/2022/12/13/post-deploy-webhook-for-vercel/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.