Skip to content

Latest commit

 

History

History
43 lines (23 loc) · 1.54 KB

README.md

File metadata and controls

43 lines (23 loc) · 1.54 KB

Vercel deployment events in Discord

This is an extremely simple next.js app that enables you to show Vercel deployment events in Discord.

image

Setup

  1. Configure Vercel to emit a webhook to your instance of this app when deployments occur. The endpoint should be: https://<wherever-you-deploy-this-service>/api/vercel-webhook

image

  1. Configure your Discord server with a webhook for receiving messages and sending them to a specific channel:

image

  1. Deploy the service with the following envionment variables:
# Get this from the Vercel webui when setting up your webhook
VERCEL_WEBHOOK_INTEGRATION_SECRET=VAn**********************

# Get this from the Discord UI when setting up a destination webhook
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/**************/39NQ**************************************************************

Development

This is a Next.js project bootstrapped with create-next-app.

To run locally:

pnpm dev

Then expose it on the internet via your favourite port-forwarding tool (ngrok, or vs code port forwarding etc...).

Make sure you've set up the appropriate env vars as per setup instructions above.