What this thread does
Pin the local stack, make Supabase targets explicit, and give cooperating Cloudflare dev processes the same registry path before testing localhost authentication.
What changed
- Supabase CLI 2.122.0, released 2026-10-23 (checked 2026-10-28) adds stack service locking, propagates TLS settings into previously missed command paths, and warns about a local-default target in the next major. That warning leaves v2's target unchanged; as of November 2026, Supabase CLI 3.0.0, released 2026-11-02, defaults applicable commands to the local stack.
- Wrangler 4.153.0, released 2026-10-26 (checked 2026-10-28) adds local origin inference opt-out with
--infer-origin-from-routes=false. - Wrangler 4.154.0, released 2026-10-27 (checked 2026-10-28) coordinates development registry resolution. Miniflare v5 beta (checked 2026-10-28) uses
CLOUDFLARE_DEV_REGISTRY_PATHinstead ofMINIFLARE_REGISTRY_PATH; existing Wrangler defaults are preserved for compatibility.
How to migrate
1. For the October 2026 migration baseline, pin the existing supabase CLI installation to 2.122.0 and the existing wrangler dependency to 4.154.0 using your project's normal installation method. The release pages name the tools; they do not prescribe a universal package-manager command. These changes concern separate tools, even if your app uses both. 2. In Supabase stack mode, review [local.services] in supabase/config.toml and version-control supabase/supabase.lock. The official lockfile PR documents supabase stack outdated for inspection and supabase stack update for deliberate re-resolution. Use supabase stack install --frozen when automation must refuse to rewrite pins. Replace the removed experimental supabase stack prepare command with supabase stack install. Review linked-project observations before accepting lock changes. 3. Audit each Supabase script's intended target. For pinned v2.122.0, the official target-warning PR says --linked, --local, --db-url and applicable project selectors suppress the warning. Use the selector for that specific command. For v3, the released target changes default applicable commands to local and use --remote for the linked project; the old target selectors are deprecated. 4. Preserve the intended PGSSLMODE, PGSSLROOTCERT, PGSSLCERT and PGSSLKEY settings in the calling environment. The release says direct connections now read these and dump/pull paths propagate resolved TLS settings. Test certificate trust and hostname validation in an isolated environment; do not disable TLS to conceal a newly surfaced verification failure. 5. For route-configured Workers whose auth expects localhost, use wrangler dev --infer-origin-from-routes=false. The official command reference and release agree that explicit --host, --local-upstream or dev.host still wins. This opt-out affects local development, not remote preview. 6. When mixing the Cloudflare Vite v2 beta plugin and Wrangler (checked 2026-10-28), set the same CLOUDFLARE_DEV_REGISTRY_PATH in both process environments. The registry implementation PR documents resolution from that variable, then unsafeDevRegistryPath, then a default scoped to the Miniflare major. Migrate old overrides, restart both processes and test discovery. Review any integration that computes its own registry directory.
What breaks
Diagnostic: CliConfigParseError
Supabase now gives a location for malformed configuration instead of only this bare error. Non-finite numeric values are rejected on load. Correct the identified config line before investigating stack startup.
Diagnostic: Wrangler local authentication returns 403
With routes configured, local requests can reach Worker code with the route host substituted into URL/headers. An allowlist expecting localhost may reject them. Log only the relevant non-sensitive host/origin fields to distinguish this from a credential failure.
Cloudflare process discovery can also fail when a beta plugin and Wrangler use different default directories. The old Miniflare variable is no longer read. Shared storage needs a registry; pairing unsafeEnableSharedStorage: true with enableDevRegistry: false is rejected, per the registry PR.
What to test
| Area | Proposed acceptance check |
|---|---|
| Stack pins | Fresh checkout uses the reviewed lock; frozen mode rejects stale pins |
| Target selection | Every script identifies its intended local or linked target before any mutation |
| TLS | Trusted matching certificate succeeds; incorrect trust/hostname fails as intended |
| Local origin | Compare Worker-visible host/origin with the actual localhost request |
| Discovery | Both processes resolve the same registry and find intended service bindings |
| Coordination | Start/stop one participant and confirm surviving bindings/storage still behave correctly |
Pitfalls
A CLI update does not deliberately refresh every locked service. The warning in v2.122.0 does not change that version's default; v3 defaults applicable commands to local. Do not remove production routes to fix localhost tests. Do not assume enabling a registry reconciles mismatched directories, or that disabling it is compatible with shared storage. Keep the legacy Wrangler default distinction when reviewing beta integrations.
Evidence and attribution
- Supabase issue 5873, evanvolgas reports loss of TLS intent when a parsed connection config becomes a URL again. This is historical demand evidence; it does not prove every TLS issue is fixed by this release.
- Workers SDK issue 14683, No-Smoke includes a small reproduction of route-host rewriting and local auth failures. Its automated triage explicitly disclaims being a maintainer answer. Use the released flag documentation, not that bot commentary, as the migration authority.
A prompt to give your agent
Your training data predates these releases. First read the linked Supabase and Wrangler release pages, the lockfile/target PRs and the registry PR. Inspect manifests, non-secret config and script text only. Propose a minimal update with reviewed service pins, current-major target selectors, preserved TLS policy, local-origin opt-out where needed and one shared registry path. Distinguish pinned v2 behavior from beta integration defaults and the released v3 target changes. Do not read secrets, connect to a database, run migrations, deploy or infer undocumented flags. Give an isolated test plan and list what you could not verify.
Limits
Checked 2026-10-28. No CLI, local stack, TLS connection, registry, database operation or deployment was executed. Two public user reports establish related pain, not successful adoption of these exact releases. No retirement date is announced in the fetched target-warning sources. No prices, licences or performance claims are included.
Started from a post by @supabase/cli, packaged by the editor. Original post