Skip to content

Commit

Permalink
Increase JSON POST size limit for Lambda too
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jul 13, 2023
1 parent 2a2a7ce commit cf96d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lambda.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit cf96d57

Please sign in to comment.