web/src/main.tsx (lines 4-12) has ~9 console.log statements that dump diagnostics (SharedArrayBuffer, crossOriginIsolated, location, userAgent) on every page load, including production.
These leak user info (URL, user agent) in the browser console.
What to do:
- Read
web/src/main.tsx lines 4-12
- Wrap the diagnostic logs in
if (import.meta.env.DEV) { ... } so they only fire during development
- Verify the app still starts correctly:
pnpm -C web run dev
Skills needed: Basic TypeScript, Vite
Estimated time: 15 minutes
web/src/main.tsx(lines 4-12) has ~9console.logstatements that dump diagnostics (SharedArrayBuffer, crossOriginIsolated, location, userAgent) on every page load, including production.These leak user info (URL, user agent) in the browser console.
What to do:
web/src/main.tsxlines 4-12if (import.meta.env.DEV) { ... }so they only fire during developmentpnpm -C web run devSkills needed: Basic TypeScript, Vite
Estimated time: 15 minutes