From cf96d57f4e2af66fee7df9bad00681b3f4ac7d77 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 13 Jul 2023 07:28:09 -0400 Subject: [PATCH] Increase JSON POST size limit for Lambda too https://groups.google.com/g/zotero-dev/c/AOpcU3FtPQU/m/yxd3JgTrAQAJ --- src/lambda.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambda.js b/src/lambda.js index 4c15dcb..dbd7c95 100644 --- a/src/lambda.js +++ b/src/lambda.js @@ -47,7 +47,7 @@ app.use(function (ctx, next) { return next(); }); app.use(cors); -app.use(bodyParser({enableTypes: ['text', 'json']})); +app.use(bodyParser({ enableTypes: ['text', 'json'], jsonLimit: '5mb' })); app.use(_.post('/web', WebEndpoint.handle.bind(WebEndpoint))); app.use(_.post('/search', SearchEndpoint.handle.bind(SearchEndpoint))); app.use(_.post('/export', ExportEndpoint.handle.bind(ExportEndpoint)));