From 7988fa62ca2df508e517976a017e6367e833eaa9 Mon Sep 17 00:00:00 2001 From: matthgyver Date: Sat, 12 Feb 2022 05:42:28 +0100 Subject: [PATCH] fix: use body parser limit config with fallback value (#4985) * permit bodyParserLimitSize configuration set bodyParserLimitSize by default to 1mb permit modifications by environment variable * fix: use bodyparserlimit config with fallback default Co-authored-by: Nicolas Giard --- server/master.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/master.js b/server/master.js index a1205abd..8274a2ed 100644 --- a/server/master.js +++ b/server/master.js @@ -91,7 +91,7 @@ module.exports = async () => { // GraphQL Server // ---------------------------------------- - app.use(bodyParser.json({ limit: WIKI.config.bodyParserLimit })) + app.use(bodyParser.json({ limit: WIKI.config.bodyParserLimit || '1mb' })) await WIKI.servers.startGraphQL() // ----------------------------------------