Skip to content

feat(cli): migrate vanity-subdomains#5394

Merged
Coly010 merged 4 commits into
supabase:developfrom
7ttp:fix/cli-1294
May 29, 2026
Merged

feat(cli): migrate vanity-subdomains#5394
Coly010 merged 4 commits into
supabase:developfrom
7ttp:fix/cli-1294

Conversation

@7ttp
Copy link
Copy Markdown
Contributor

@7ttp 7ttp commented May 29, 2026

TL;DR

Ports supabase vanity-subdomains get, check-availability, activate, and delete from the legacy Go proxy to native TypeScript

What's Introduced

This replaces the LegacyGoProxy path for the vanity-subdomains command family with native handlers
wired through the existing legacy management-api runtime, instrumentation, and JSON error handling path

Ref:

closes CLI-1294

@7ttp 7ttp requested a review from a team as a code owner May 29, 2026 14:19
@7ttp 7ttp self-assigned this May 29, 2026
@7ttp 7ttp requested review from Coly010 and jgoux May 29, 2026 14:25
Coly010 added 2 commits May 29, 2026 15:56
- Drop `safeFlags: ["project-ref"]` from all four commands; Go's
  vanitySubdomains.go never calls markFlagTelemetrySafe, so project refs
  must be redacted in telemetry for 1:1 parity.
- Wrap each API call in `output.task` so text mode shows a spinner instead
  of appearing to hang during network I/O.
- Fix activate SIDE_EFFECTS.md API path to /vanity-subdomain/activate.
- Document the `trackAnalytics` option, the `Effect.flip` error inspection,
  and the delete handler's legacy-output read.
- Expand integration tests to 100% branch coverage across all four handlers
  (legacy json/yaml/toml/env, --output-format json/stream-json, absent
  custom_domain, network and status errors, post-run telemetry on failure)
  and tighten the activate endpoint assertion and gated-upgrade mock match.
Copy link
Copy Markdown
Contributor

@Coly010 Coly010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! LGTM! Just added a minor fix around marking project-ref as a safe flag. I removed it, because I don't think we want to potentially leak that data into telemetry.

@Coly010 Coly010 merged commit f6f2a47 into supabase:develop May 29, 2026
11 checks passed
@7ttp 7ttp deleted the fix/cli-1294 branch May 29, 2026 16:08
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.

2 participants