Skip to content

Commit

Permalink
fix(api):fix max upload file size
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreavizou committed Nov 21, 2024
1 parent 84eb919 commit 1d32fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reva-api/infra/server/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
});
Expand Down

0 comments on commit 1d32fbc

Please sign in to comment.