fix(telemetry): route the collector domain and redirect browser visits - #695
Conversation
Browser GET requests previously returned 405. Redirect them to the telemetry reference with 302 while preserving POST ingestion and rejecting other methods without Analytics Engine writes. Declare telemetry.pgflow.dev as a Worker Custom Domain so Wrangler manages DNS and TLS during deployment. Collector tests, typecheck, lint, and the Wrangler deployment dry-run pass; no live infrastructure changes or package release are part of this commit.
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
View your CI Pipeline Execution ↗ for commit b562139
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
🚀 Production Deployment: Website✅ Successfully deployed to production! 🔗 Production URL: https://pgflow.dev 📝 Details:
Deployed at: 2026-10-02T09:40:22+02:00 |

Summary
https://pgflow.dev/reference/telemetry/with HTTP 302; leave POST telemetry ingestion unchanged.telemetry.pgflow.devas the collector's Worker Custom Domain so Wrangler manages DNS and TLS at deployment.Checks
pnpm nx test-env:fresh edge-workerpassed.pnpm nx run @pgflow/telemetry-worker:testpassed: 32 tests.@pgflow/telemetry-workeraffected.pnpm nx affected -t test typecheck lint --base=HEADpassed before commit.pnpm --dir apps/telemetry-worker exec wrangler deploy --dry-runpassed with the existingPGFLOW_TELEMETRYAnalytics Engine binding.git diff --checkpassed; the committed tree matches the checked files.Deployment
This PR does not deploy Cloudflare infrastructure. After merge, run the collector deployment from main with a token authorized for the Worker and Custom Domain. Keep request logging disabled. GET redirects to the docs; a valid JSON POST returns 204. A production smoke-test POST writes a real Analytics Engine point.
No npm/JSR release or changeset is needed: the collector is private and 0.17.2 senders already use this hostname.
Related: #691/#692 corrected the sender endpoint; this PR declares the hosting route and browser behavior.