Repository navigation
Conversation
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 134.1 MB, unchanged. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: snapshot supabase/supabase@b0254cf supplied to reviewers (advisory, not a style pass).
Both independent reviews completed. The PR switches Edge Runtime’s SUPABASE_DB_URL to the db alias and preserves password encoding. One minor correctness finding is confirmed by code inspection. Projects that share a Docker network can resolve db to the wrong Postgres container. The diff changes no CLI reference prose, and the affected overlays make no claim about this hostname.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | apps/cli/src/commands/start/services/edge-runtime.service.ts:112 |
correctness |
claude | When two projects share a Docker network through --network-id or SUPABASE_NETWORK_ID, both Postgres containers register the db alias. The new SUPABASE_DB_URL can resolve to either container, so an Edge Function can connect to the other project’s database if its credentials match. |
Stats
Claude findings: 1 · Codex findings: 0 · Confirmed: 1 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
jgoux
left a comment
There was a problem hiding this comment.
Thanks for tracking this down. Switching to a hostname without an underscore is the right fix for node:dns. One isolation issue with the specific alias, plus a test suggestion.
jgoux
left a comment
There was a problem hiding this comment.
Both earlier points are addressed: the project-specific db-<id> alias is used for SUPABASE_DB_URL, and the contract echo function now resolves the host through node:dns. One low-priority note inline.
TL;DR
fixes edge functions failing to reach the database through
SUPABASE_DB_URLundersupabase startwhat hurts the user?
supabase startgave functions aSUPABASE_DB_URLon hostsupabase_db_<project>and the edge runtime'snode:dnsrejects the underscore, so Postgres.js or Drizzle failed withgetaddrinfo ENOTFOUNDfixed by:
giving the db container a project alias without underscores (
db-<project id>) and using it as the host, so functions reach their own database even when stacks share a--network-id, and a running stack picks it up on its nextsupabase stopandsupabase startref: