diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs index 3b4cd057..e2b7bfd6 100644 --- a/frontend/next.config.mjs +++ b/frontend/next.config.mjs @@ -9,4 +9,10 @@ const nextConfig = { }, }; +if (process.env.NEXT_PUBLIC_NODE_ENV === 'prod') { + nextConfig.compiler = { + removeConsole: true, + }; +} + export default nextConfig;