Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mistakia committed May 6, 2024
1 parent 38608f5 commit a7b3bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const IS_DEV = process.env.NODE_ENV === 'development'
const speedLimiter = slowDown({
windowMs: 10 * 60 * 1000, // 10 minutes
delayAfter: 50, // allow 50 requests per 10 minutes, then...
delayMs: (hits, req) => (hits - req.slowDown.limit) * 500, // begin adding 500ms of delay per request above 50:
delayMs: (hits, req) => (hits - req.slowDown.limit) * 500, // begin adding 500ms of delay per request above 50
maxDelayMs: 20000 // maximum delay of 20 seconds
})

Expand Down

0 comments on commit a7b3bf6

Please sign in to comment.