Skip to content

Commit

Permalink
Allow for large request size
Browse files Browse the repository at this point in the history
  • Loading branch information
VisenP committed Nov 29, 2023
1 parent bd2c7a2 commit 603b16a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ app.use(async (req, res, next) => {
next();
});

app.use(json(), (req, _, next) => {
app.use(json({ limit: "50mb" }), (req, _, next) => {
// json from express@5 yields undefined for empty bodies,
// this breaks validation, so we're falling back to an empty object
if (req.body === undefined) req.body = {};
Expand Down

0 comments on commit 603b16a

Please sign in to comment.