From e431f122e9cde6ccbd25e99e5f1ed443ab3ead33 Mon Sep 17 00:00:00 2001 From: Josh Kasten Date: Tue, 14 Nov 2023 02:54:29 +0000 Subject: [PATCH] dev env - fix low rate limit on sandbox The orignal 100 limit can be hit due to the number of resources being pulled down on each refresh durning testing. --- express_webpack/server.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/express_webpack/server.js b/express_webpack/server.js index 41c4c4fad..da2fc38de 100644 --- a/express_webpack/server.js +++ b/express_webpack/server.js @@ -5,14 +5,14 @@ const fs = require('fs'); var sanitize = require("sanitize-filename"); const app = express(), - DIST_DIR = __dirname, - HTML_FILE = path.join(DIST_DIR, 'index.html'), - SDK_FILES = path.join(DIST_DIR, '../build/releases/'); + DIST_DIR = __dirname, + HTML_FILE = path.join(DIST_DIR, 'index.html'), + SDK_FILES = path.join(DIST_DIR, '../build/releases/'); var RateLimit = require('express-rate-limit'); var limiter = RateLimit({ windowMs: 15 * 60 * 1000, // 15 minutes - max: 100, // max 100 requests per windowMs + max: 1000, // max 1000 requests per windowMs }); // apply rate limiter to all requests app.use(limiter);