diff --git a/keep-ui/next.config.js b/keep-ui/next.config.js index bf8da95e9..e772a9c4f 100644 --- a/keep-ui/next.config.js +++ b/keep-ui/next.config.js @@ -27,7 +27,9 @@ const nextConfig = { }, compiler: { removeConsole: - process.env.NODE_ENV === "production" + process.env.ENABLE_CONSOLE_LOGS === "true" + ? false + : process.env.NODE_ENV === "production" ? { exclude: ["error"], }