From 46c2191f274dd1e6f69ec74173658d99f1f5518e 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 --- 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 442aba7227..e0a89d3ff5 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