From 6a9a387f4fda8117260ff3c97b20aa7997e398b6 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Wed, 18 May 2022 17:04:08 +0800 Subject: [PATCH] client: remove console --- packages/client/next.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/client/next.config.js b/packages/client/next.config.js index 3fcfb253..544d04ce 100644 --- a/packages/client/next.config.js +++ b/packages/client/next.config.js @@ -24,6 +24,11 @@ const nextConfig = semi({ typescript: { ignoreBuildErrors: true, }, + compiler: { + removeConsole: { + exclude: ['error'], + }, + }, workboxOpts: { runtimeCaching: [ {