• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
jamiedubs

jamiedubs

vercelAlertToDiscord

WIP! pipe alerts from new Vercel Alerts to Discord channel
Public
Like
1
vercelAlertToDiscord
Home
Code
3
README.md
H
index.ts
main.ts
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
10/8/2025
Viewing readonly version of main branch: v4
View latest version
README.md

Vercel to Discord Webhook

A simple webhook handler that receives Vercel alerts and posts them as formatted messages to a Discord channel.

Setup

  1. Environment Variable: Set DISCORD_WEBHOOK_URL to your Discord webhook URL

    • In Discord: Server Settings → Integrations → Webhooks → Create Webhook
    • Copy the webhook URL and add it as an environment variable
  2. Vercel Configuration:

    • Go to your Vercel project settings
    • Navigate to Webhooks section
    • Add this Val's HTTP endpoint as a webhook URL
    • Select the events you want to monitor (e.g., deployment alerts, usage anomalies)

Features

  • ✅ Handles Vercel webhook payloads
  • ✅ Formats alerts as Discord embeds with proper colors
  • ✅ Includes project info, timestamps, and links
  • ✅ Different colors for different alert types:
    • 🟡 Yellow for usage anomalies and warnings
    • 🔴 Red for errors and failures
    • 🔵 Blue for general alerts
  • ✅ Clickable links to Vercel observability dashboard

Supported Alert Types

  • usage_anomaly - Unusual usage patterns
  • observability.anomaly - Observability alerts
  • And other Vercel alert types

Example Discord Message

The webhook will create rich Discord embeds with:

  • Alert type and emoji
  • Project and team information
  • Timestamp (formatted as Discord timestamp)
  • Direct link to Vercel dashboard
  • Color-coded based on severity
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.