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)));