
This example demonstrates using @upstash/ratelimit with Upstash Redis.
Copy the example env file:
Set the environment variables in the new env file after creating an Upstash Redis instance.
Then, install the dependencies:
Finally, run the application with
To deploy to vercel, simply run
If you create a new project, you may need to set the environment variables and redeploy the app.