Skip to content

Commit

Permalink
fix: use body parser limit config with fallback value (#4985)
Browse files Browse the repository at this point in the history
* 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 <github@ngpixel.com>
  • Loading branch information
matthgyver and NGPixel authored Feb 12, 2022
1 parent 8e3af9a commit 7988fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/master.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

// ----------------------------------------
Expand Down

0 comments on commit 7988fa6

Please sign in to comment.