From 1d32fbc0f21f902dd2d7db3286c705567eb04709 Mon Sep 17 00:00:00 2001 From: Pierre A Date: Thu, 21 Nov 2024 15:46:57 +0100 Subject: [PATCH] fix(api):fix max upload file size --- packages/reva-api/infra/server/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/reva-api/infra/server/app.ts b/packages/reva-api/infra/server/app.ts index e5bd419f5..a13e1b2e1 100644 --- a/packages/reva-api/infra/server/app.ts +++ b/packages/reva-api/infra/server/app.ts @@ -105,7 +105,7 @@ export const buildApp = async ( app.register(strapiWebhookRoute, { prefix: "/api" }); // keep MercuriusGQLUpload at the end to handle conflict with fastify.addContentTypeParser("multipart/form-data", ...) - app.register(MercuriusGQLUpload, { prefix: "/api", maxFileSize: 10000000 }); + app.register(MercuriusGQLUpload, { prefix: "/api", maxFileSize: 20971520 }); app.register(mercuriusGraphQL, { prefix: "/api", });