From 2e6bb2498b324ce785148a1d83ff00b731658ae0 Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Sat, 16 Aug 2025 19:26:18 +0400 Subject: [PATCH] chore: remove console logs in production --- next.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.ts b/next.config.ts index 68dbb10..5690435 100644 --- a/next.config.ts +++ b/next.config.ts @@ -7,6 +7,9 @@ const nextConfig: NextConfig = { unoptimized: true, }, distDir: "dist", + compiler: { + removeConsole: process.env.NODE_ENV === "production", + }, }; export default nextConfig;