Unverified Commit 7988fa62 authored by matthgyver's avatar matthgyver Committed by GitHub

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: 's avatarNicolas Giard <github@ngpixel.com>
parent 8e3af9ac
......@@ -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()
// ----------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment