feat: bun support 🥟 (#907)

* feat: bun 🥟

* check if playwright/linux workflow is fixed

* fix: backend issues exposed by bun

* feat: update scripts for bun
This commit is contained in:
Danny Avila 2023-09-10 16:04:08 -04:00 committed by GitHub
parent a9215ed9ce
commit 75be9a3279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 33 additions and 13 deletions

View file

@ -7,6 +7,10 @@ const registerLimiter = rateLimit({
windowMs,
max,
message: `Too many accounts created from this IP, please try again after ${windowInMinutes} minutes`,
keyGenerator: function (req) {
// Strip out the port number from the IP address
return req.ip.replace(/:\d+[^:]*$/, '');
},
});
module.exports = registerLimiter;