Problem
The migration script's generateWranglerConfig in packages/blocks-cli/scripts/migrate/phase-scaffold.ts does not include account_id in the generated wrangler.jsonc. Without it, wrangler deploy targets the deploying user's default CF account instead of the deco-cx account — causing Worker-to-Worker fetches to deco-otel-ingest.deco-cx.workers.dev to return 404.
This was observed on miess-01-tanstack: every POST to the otel-ingest endpoint returned 404, while other sites (casaevideo, lebiscuit, baggagio) that had account_id pinned got 200 OK. Fix was applied manually via PR #56 on that site.
Fix
Add account_id: "c95fc4cec7fc52453228d9db170c372c" to the object returned by generateWranglerConfig in packages/blocks-cli/scripts/migrate/phase-scaffold.ts, so every newly migrated site already has the correct account pinned from day one.
Why this account_id
c95fc4cec7fc52453228d9db170c372c is the deco-cx Cloudflare account that hosts deco-otel-ingest and deco-otel-tail. Both Worker-to-Worker fetches and tail_consumers bindings require in-account routing to resolve correctly.
Problem
The migration script's
generateWranglerConfiginpackages/blocks-cli/scripts/migrate/phase-scaffold.tsdoes not includeaccount_idin the generatedwrangler.jsonc. Without it,wrangler deploytargets the deploying user's default CF account instead of the deco-cx account — causing Worker-to-Worker fetches todeco-otel-ingest.deco-cx.workers.devto return 404.This was observed on miess-01-tanstack: every
POSTto the otel-ingest endpoint returned 404, while other sites (casaevideo, lebiscuit, baggagio) that hadaccount_idpinned got 200 OK. Fix was applied manually via PR #56 on that site.Fix
Add
account_id: "c95fc4cec7fc52453228d9db170c372c"to the object returned bygenerateWranglerConfiginpackages/blocks-cli/scripts/migrate/phase-scaffold.ts, so every newly migrated site already has the correct account pinned from day one.Why this account_id
c95fc4cec7fc52453228d9db170c372cis the deco-cx Cloudflare account that hostsdeco-otel-ingestanddeco-otel-tail. Both Worker-to-Worker fetches andtail_consumersbindings require in-account routing to resolve correctly.