This is a basic Zeit Now Function that accepts an incoming Sentry webhook and transforms it to the format expected by Discord.
Step one is to create a new Discord Webhook to send the alerts to and add the domain to now secrets
now secrets add sentry-discord-webhook <WEBHOOK_URL>
Take the deployment URL and add it to the Webhooks
section of your Sentry project. You will need to add a /api
to the domain. The root URL will not work. Save the value and click "Test Plugin" - you should see an alert pop up in Discord!