fix: alias staging docs via the deployments API#2897
Conversation
`vercel alias set` only accepts domains registered at the team level, but staging.bittensor.com is attached and verified on the project, so every staging deploy failed at the alias step. The deployments API honors project domains, so resolve the deployment id and set the alias with curl instead. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🛡️ AI Review — Skeptic (security review)VERDICT: SAFE BASELINE scrutiny: author has repository write access and substantial merged contribution history; no Gittensor association found. Branch fix-staging-alias → main. Static analysis found the workflow change narrowly scoped to resolving the Vercel deployment ID and assigning the existing staging alias. Inputs interpolated into the requests come from trusted secrets, repository variables, or Vercel’s deployment response; no credential-exposure or command-injection path was introduced. FindingsNo findings. ConclusionThe API-based alias operation preserves the workflow’s existing trust boundary and fails on HTTP or parsing errors. No security vulnerability or malicious behavior found. 🔍 AI Review — Auditor (domain review)VERDICT: 👍 Gittensor association: UNKNOWN; established contributor with repository write access and substantial prior contributions. The implementation matches the PR description: staging deployments now resolve the Vercel deployment ID and assign the project-level alias through the deployments API, while the production path remains unchanged. HTTP and response-parsing failures correctly fail the workflow step. No overlapping PRs were identified, and no runtime/spec-version change is involved. FindingsNo findings. ConclusionThis is a focused, well-explained workflow fix with an appropriate test account and no substantive correctness issues found. |
|
🔄 AI review updated — Skeptic: SAFE Auditor: 👍 |
|
Superseded by #2898 (v431 release): these changes were reviewed and integrated there. |
Summary
Deploy Docsrun on main has failed at the final step withError: You don't have access to the domain staging.bittensor.com under rao-foundation, becausevercel alias setonly accepts domains in the team-level domain registry whilestaging.bittensor.comis attached (and verified) at the project level.GET /v13/deployments/<url>to resolve the id,POST /v2/deployments/<id>/aliases), which honors project domains.curl -sffails the step on any HTTP error.Test plan
Deploy Docsrun goes green and staging.bittensor.com picks up the new deployment.Made with Cursor