Skip to content

Commit

Permalink
fix: Increase invocation payload limit to 6 mb
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Jun 20, 2022
1 parent ffa3583 commit 0e13c8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lambda/routes/invocations/invocationsRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export default function invocationsRoute(lambda, options) {
payload: {
// allow: ['binary/octet-stream'],
defaultContentType: 'binary/octet-stream',
// Set maximum size to 6 MB to match maximum invocation payload size in synchronous responses
maxBytes: 1024 * 1024 * 6,
// request.payload will be a raw buffer
parse: false,
},
Expand Down

0 comments on commit 0e13c8b

Please sign in to comment.