Skip to content

Commit

Permalink
fix: Use BODY_LIMIT when creating app
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoz committed Oct 10, 2024
1 parent f908fa4 commit c0d999f
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 c0d999f

Please sign in to comment.