Skip to content

Commit

Permalink
refactor(NEXT): rate highly supressed.
Browse files Browse the repository at this point in the history
  • Loading branch information
arg0WAK committed Jun 8, 2024
1 parent d62956a commit 2c185da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware/ratelimit.js
Original file line number Diff line number Diff line change
@@ -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({
Expand Down

0 comments on commit 2c185da

Please sign in to comment.