Setup Upstash
Configure Upstash Redis for rate limiting
Setup Upstash Redis
Versend uses Upstash Redis for rate limiting. Add the credentials and it's enabled. No credentials = no rate limiting.
Skipping this step? Without rate limiting, your webhook endpoint is vulnerable to:
- Abuse: Malicious actors can spam your endpoint
- DDoS: Your endpoint can be overwhelmed by excessive requests
- Resource exhaustion: Uncontrolled requests increase costs
- Discord spam: Excessive requests could get your webhook disabled by Discord
Only skip if you have alternative protection (Cloudflare, Vercel Firewall, etc.).
Create an Upstash Account
Go to console.upstash.com and sign up or log in.
Create a Redis Database
Click Create Database and configure:
- Name: Anything (e.g.,
versend) - Region: Choose the region closest to your Vercel deployment (usually
us-east-1for Vercel) - Type: Regional is fine
Copy the Credentials
In your database dashboard, find the REST API section and copy:
UPSTASH_REDIS_REST_URLUPSTASH_REDIS_REST_TOKEN
Save these values — you'll need them for the environment variables.