100 seconds | How to do Rate limit in Next.js api
HTML-код
- Опубликовано: 13 янв 2024
- In this video I am going to show you how to do rate limit in next.js.
Code:
- vercel.com/templates/next.js/...
Support the channel : 🙏🌸
- donate 🌻: / dailywebcoding
Follow me: 👇
- Discord: / discord
- Github: github.com/Chensokheng
W channel
thanks a lot, I was actually searching for this.
very thankful
Thanks now you are a mind reader too
Can we use this to rate limit 3rd party APIs we might call in our apps?
Thanks
Does it work the same way for server actions?
How can one create a reusable middleware function with this gor each router handler without typing it all over again. The middleware.js file is a paid vercel service... partly which it's the only option provided.
So whole logic of rate limiting is similar to tokenization with signup and sign in? We keep user ip and timestamps and check conditionaly wether timestamp of user ip adress is less than or higher than 5 seconds after last request?