This is an extremely simple next.js app that enables you to show Vercel deployment events in Discord.
- 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
- Configure your Discord server with a webhook for receiving messages and sending them to a specific channel:
- 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**************************************************************
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.