LTRAC-988: Add custom domain command#3070
Conversation
Add a domains command group with a create-domain API client and wait support for pending domain verification. Refs LTRAC-988
|
Bundle Size ReportComparing against baseline from No bundle size changes detected. |
Include the HTTP status and correlation ID when domain API requests fail with a server-side response so 502 Bad Gateway errors are actionable. Refs LTRAC-988
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Keep domain API server error messages concise because the CLI fatal error handler already prints the correlation ID for support. Refs LTRAC-988
Unlighthouse Performance Comparison — VercelComparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores. Summary ScoreAggregate score across all categories as reported by Unlighthouse.
Category Scores
Core Web Vitals
|
|
Seeing an error I'm still debuging: |
|
Fixed now: With wait: |
What/Why?
Refs LTRAC-988
Adds the
catalyst domains add <domain>workflow and a shared domain API client for the Native Hosting domain endpoints. The command resolves existing CLI credentials/project config, displays the returned verification status, and can poll until a pending domain leaves pending status.DNS record rendering is intentionally not included because the current API response only exposes domain, project UUID, and verification status.
Testing
node_modules/.bin/vitest run src/cli/commands/domains.spec.tsnode_modules/.bin/tsc --noEmitnode_modules/.bin/eslint src/cli/commands/domains.ts src/cli/commands/domains.spec.ts src/cli/lib/domains.ts tests/mocks/handlers.ts src/cli/program.ts --max-warnings 0Attempted full
node_modules/.bin/vitest run --coverage, but this local environment fails unrelated existing tests that requireapi.github.comnetwork access and npm package env vars.Migration
None.