From ae7e217540d4e10e6e704b0230d9104d1401d32b Mon Sep 17 00:00:00 2001 From: LR <107395524+VWSCoronaDashboard26@users.noreply.github.com> Date: Thu, 9 Feb 2023 15:52:51 +0100 Subject: [PATCH] hotfix(performance): added compression false flag to Next.js config as to prevent duplicate compression strategies; (#4652) Co-authored-by: VWSCoronaDashboard26 <VWSCoronaDashboard26@users.noreply.github.com> --- packages/app/next.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/app/next.config.js b/packages/app/next.config.js index a142541ae5..0d7741b622 100644 --- a/packages/app/next.config.js +++ b/packages/app/next.config.js @@ -20,6 +20,14 @@ const nextConfig = { */ reactStrictMode: true, + /** + * This flag has been added for testing purposes as requested by BE. + * This disables compression as to prevent possible issues introduced by duplicate + * compression strategies (in both BE and FE). + * https://nextjs.org/docs/api-reference/next.config.js/compression + */ + compress: false, + i18n: { // These are all the locales you want to support in // your application