From 2b88cd64fc6634f154c9100b3f7bd56f2a0ffd05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Prod=27homme?= Date: Thu, 14 Nov 2024 14:03:30 +0100 Subject: [PATCH] refactor(cms): Increase JSON payload to 50MB This will allow to upload bigger files through the Import/Export plugin. --- cms/config/middlewares.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cms/config/middlewares.ts b/cms/config/middlewares.ts index 829f5c0..d7f991c 100644 --- a/cms/config/middlewares.ts +++ b/cms/config/middlewares.ts @@ -5,7 +5,12 @@ export default [ 'strapi::cors', 'strapi::poweredBy', 'strapi::query', - 'strapi::body', + { + name: 'strapi::body', + config: { + jsonLimit: '50mb', + }, + }, 'strapi::session', 'strapi::favicon', 'strapi::public',