Skip to content

fix: guard main diagnostics in development#23

Open
alceops wants to merge 1 commit into
nutstore:mainfrom
alceops:alce/guard-main-diagnostics
Open

fix: guard main diagnostics in development#23
alceops wants to merge 1 commit into
nutstore:mainfrom
alceops:alce/guard-main-diagnostics

Conversation

@alceops
Copy link
Copy Markdown
Contributor

@alceops alceops commented May 1, 2026

Summary

  • wrap the early COOP/COEP diagnostic console logging in import.meta.env.DEV
  • keeps the diagnostics available during local development while avoiding production console output of URL/user-agent details

Closes #11

Verification

  • python3 static guard check confirmed the Main Thread diagnostics are inside the DEV branch
  • pnpm -C web run typecheck not run in this cron VM because Node/pnpm are unavailable here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant