From 603b16a426befec273fd3f5eae2fc76b46ff225d Mon Sep 17 00:00:00 2001 From: VisenP Date: Wed, 29 Nov 2023 23:34:13 +0100 Subject: [PATCH] Allow for large request size --- apps/backend/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/app.ts b/apps/backend/src/app.ts index 3b7a3b33..74535872 100644 --- a/apps/backend/src/app.ts +++ b/apps/backend/src/app.ts @@ -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 = {};