From a7b3bf6510d362fb6be0d6e890a3094832e4bcdf Mon Sep 17 00:00:00 2001 From: mistakia <1823355+mistakia@users.noreply.github.com> Date: Mon, 6 May 2024 11:04:20 -0400 Subject: [PATCH] fix: typo --- api/server.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server.mjs b/api/server.mjs index cf459b97..d13321d8 100644 --- a/api/server.mjs +++ b/api/server.mjs @@ -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 })