Skip to content

Fix browser monitoring and deterministic builds - #73

Merged
sarthakagrawal927 merged 1 commit into
mainfrom
agent/fix-vitals-collector
Aug 9, 2026
Merged

Fix browser monitoring and deterministic builds#73
sarthakagrawal927 merged 1 commit into
mainfrom
agent/fix-vitals-collector

Conversation

@sarthakagrawal927

Copy link
Copy Markdown
Member

What changed

  • remove the dead Web Vitals beacon fallback and its CSP allowance
  • initialize PostHog, Web Vitals, and API timing together in the shared provider
  • remove the redundant VitalsReporter component
  • isolate Playwright Wrangler state and clear generated build/cache outputs before repeat builds
  • prevent local browser tests from loading operator .dev.vars

Why

The production smoke found two 404 beacons to a collector that does not exist. Rebuilding locally after the monitoring change also exposed stale OpenNext HTML/chunk hashes retained in Wrangler local state. This fixes both defects without changing production Cloudflare bindings.

Validation

  • pnpm lint
  • pnpm typecheck
  • pnpm docs:check
  • pnpm test:coverage (185 passed; 100% selective core coverage)
  • pnpm knip:strict
  • pnpm build:e2e
  • CI=1 CLOUDFLARE_API_TOKEN= pnpm test:e2e (14 passed)
  • git diff --check

@sarthakagrawal927
sarthakagrawal927 merged commit c487240 into main Aug 9, 2026
2 checks passed
@sarthakagrawal927
sarthakagrawal927 deleted the agent/fix-vitals-collector branch August 9, 2026 07:36
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.

1 participant