Skip to Content
Get StartedRate Limiting Setup

⏱️ Setting Up Rate Limiting with Upstash

Your app uses rate limiting to prevent abuse of endpoints (e.g., sign-in, API requests).
We use Upstash Redis as a serverless, managed Redis backend.

1. Create an Upstash Account

  1. Go to https://upstash.com 
  2. Click Sign Up and create an account (GitHub login is supported).
  3. Once logged in, navigate to the Redis section.

2. Create a New Redis Database

  1. Click Create Database.
  2. Enter a descriptive name for your database (e.g., ratelimit-db).
  3. Choose the region closest to your app’s deployment.
  4. Select a plan — you can start with the Free tier — then click Next and Create.
  5. Wait for the database to be ready. You’ll see the credentials listed in the Connect section of the dashboard.

3. Copy Your Upstash Credentials

From the dashboard, copy the following URL and token:

UPSTASH_REDIS_REST_URL="https://<your-upstash-id>.upstash.io" UPSTASH_REDIS_REST_TOKEN="<your-upstash-token>"
Last updated on