File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,11 @@ import { AuthProvider } from "./contexts/AuthContext";
77import { QueryClientProvider } from "@tanstack/react-query" ;
88import { queryClient } from "@/lib/queryClient" ;
99
10+ // Disable console.log in production to avoid verbose output
11+ if ( process . env . NODE_ENV === "production" ) {
12+ console . log = ( ) => { } ;
13+ }
14+
1015const root = createRoot ( document . getElementById ( "root" ) ! ) ;
1116root . render (
1217 < QueryClientProvider client = { queryClient } >
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ import { setupVite, serveStatic } from "./vite";
1414import logger from "./logger" ;
1515import "./logger.ts" ; // force esbuild to preserve it
1616
17+ // Disable console.log in production to avoid verbose output
18+ if ( process . env . NODE_ENV === "production" ) {
19+ console . log = ( ) => { } ;
20+ }
21+
1722
1823/* ────────────────────────────────────────────────────────────────── */
1924/* 0. Winston test log – confirms logger is active */
You can’t perform that action at this time.
0 commit comments