From a2b7d416dd86703d7a4e5d0753159e5f3166a2fa Mon Sep 17 00:00:00 2001 From: amazon-meaisiah Date: Wed, 4 Mar 2020 13:23:29 -0800 Subject: [PATCH] Increase limit to allow for larger API imports/etc. --- lambdas/backend/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambdas/backend/index.js b/lambdas/backend/index.js index f359f727f..8532398a2 100644 --- a/lambdas/backend/index.js +++ b/lambdas/backend/index.js @@ -12,8 +12,8 @@ const awsServerlessExpress = require('aws-serverless-express') const app = express() app.use(cors()) -app.use(bodyParser.json()) -app.use(bodyParser.urlencoded({ extended: true })) +app.use(bodyParser.json({ limit: '10mb' })) +app.use(bodyParser.urlencoded({ limit: '10mb', extended: true })) app.use(awsServerlessExpressMiddleware.eventContext()) // user APIs