Skip to content

Conversation

@AnthonyFinney
Copy link
Contributor

Fixes Issue

[FEATURE] Add Rate Limiting to APIs for Database-Backed Endpoints #417

Changes proposed

I have added two file rateLimiter and withRateLimit which will act as a wrapper for the handler of the apis.

Note to reviewers

I know we were discussing about this so i made the pr req. If there are thing i need change i can do it.

Screenshots

n/a

@vercel
Copy link

vercel bot commented Sep 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
projectmate Ready Ready Preview Comment Sep 16, 2025 6:18am

@rohitdasu
Copy link
Owner

Code looks good to me, could you please tell me how can i setup redis upstash? I mean from where can i get the credentials?

@AnthonyFinney
Copy link
Contributor Author

AnthonyFinney commented Sep 20, 2025

here - https://console.upstash.com/ - make a redis db then you will get the UPSTASH_REDIS_REST_UR and UPSTASH_REDIS_REST_TOKEN it will be under REST put them in the .env and that should do it.

@rohitdasu
Copy link
Owner

here - https://console.upstash.com/ - make a redis db then you will get the UPSTASH_REDIS_REST_UR and UPSTASH_REDIS_REST_TOKEN it will be under REST put them in the .env and that should do it.

Thanks. i'll test it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants