Skip to content

Commit

Permalink
fix: size of limit json to 1gb
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihar committed May 7, 2024
1 parent aeac7d2 commit 136410a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-gateway/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Promise.all([
await app.register(fastifyMultipart);

const bodyLimit = 10_485_760;
app.useBodyParser('json', { bodyLimit });
app.useBodyParser('json', { bodyLimit: 1024 * 1024 * 1024 });
app.useBodyParser('binary/octet-stream', { bodyLimit: 1024 * 1024 * 1024 });
// app.useBodyParser('multipart/form-data', { bodyLimit: 1024 * 1024 * 1024 });
// app.use(json({ limit: '10mb' }));
Expand Down

0 comments on commit 136410a

Please sign in to comment.