Quick Start
Ratelimiting
In this section, we will set up the rate limiting for the application.
we use the @upstash/ratelimit
package to implement rate limiting.
We only implement rate limiting for one endpoint which is the /api/temp
endpoint.
How to configure the rate limiting
- Create a new Upstash account.
- Create a new Redis database.
- Copy the Redis database URL and paste it in the
.env.local
file.