From 2c185da0e7a39749b70e7b064c9982b25b6dab02 Mon Sep 17 00:00:00 2001 From: barisalby Date: Sun, 9 Jun 2024 01:03:16 +0300 Subject: [PATCH] refactor(NEXT): rate highly supressed. --- middleware/ratelimit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/ratelimit.js b/middleware/ratelimit.js index c095abd..923cc9b 100644 --- a/middleware/ratelimit.js +++ b/middleware/ratelimit.js @@ -1,8 +1,8 @@ import rateLimit from "express-rate-limit"; const limiter = rateLimit({ - windowMs: 5 * 60 * 1000, - max: 50, + windowMs: 60 * 60 * 1000, + max: 25, statusCode: 429, handler: (req, res) => { res.status(429).json({