From a26da9c2b9e1e2b5df1eb44bfd8c44c1693a4341 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Mon, 30 May 2022 15:42:36 +0800 Subject: [PATCH] client: remove console when production --- packages/client/next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/next.config.js b/packages/client/next.config.js index 7ac83a42..276cdec7 100644 --- a/packages/client/next.config.js +++ b/packages/client/next.config.js @@ -34,7 +34,7 @@ const nextConfig = semi({ ignoreBuildErrors: true, }, compiler: { - removeConsole: true, + removeConsole: process.env.NODE_ENV === 'production', }, pwa: { disable: process.env.NODE_ENV !== 'production',