Skip to content

Commit

Permalink
Merge pull request #445 from jgoz/fix-body-limit
Browse files Browse the repository at this point in the history
fix: Use BODY_LIMIT when creating app
  • Loading branch information
kodiakhq[bot] authored Nov 15, 2024
2 parents 7aa5c71 + b2ae0d2 commit 65a80be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ const app = createApp({
trustProxy: true,
// Default is 1MB
// https://fastify.dev/docs/latest/Reference/Server/#bodylimit
// Here, we raise it to 50 MB (50 * 1024 * 1024).
// number is measured in Bytes
bodyLimit: 52428800,
bodyLimit: env.get().BODY_LIMIT,
})

closeWithGrace(
Expand Down

0 comments on commit 65a80be

Please sign in to comment.