From c0d999f7d8ef69950b2fb13374eef65901a1c712 Mon Sep 17 00:00:00 2001 From: John Gozde Date: Thu, 10 Oct 2024 09:29:37 -0600 Subject: [PATCH] fix: Use BODY_LIMIT when creating app --- src/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 513e2fa7..94d158b4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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(