client: remove console when production

This commit is contained in:
fantasticit 2022-05-30 15:42:36 +08:00
parent 359105f474
commit a26da9c2b9
1 changed files with 1 additions and 1 deletions

View File

@ -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',