Skip to content

Guard diagnostic console.log statements in main.tsx with DEV check #11

@kanweiwei

Description

@kanweiwei

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:

  1. Read web/src/main.tsx lines 4-12
  2. Wrap the diagnostic logs in if (import.meta.env.DEV) { ... } so they only fire during development
  3. Verify the app still starts correctly: pnpm -C web run dev

Skills needed: Basic TypeScript, Vite

Estimated time: 15 minutes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions