[codex] Fix Vercel release web deploy scope#2611
Merged
juliusmarminge merged 1 commit intomainfrom May 9, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
VERCEL_TEAM_SLUGwhen provided, otherwise fall back to the requiredVERCEL_ORG_IDsecret.Why
The scheduled release run deployed the hosted web app successfully, but failed when aliasing
nightly.app.t3.codes. BecauseVERCEL_TEAM_SLUGwas empty, the Vercel CLI used the default personal scope and rejected the alias operation as unauthorized.Validation
bun fmtbun lintbun typecheckbun run release:smokeNote
Fix Vercel web deploy scope to fall back to
VERCEL_ORG_IDwhenVERCEL_TEAM_SLUGis unsetThe
--scopeflag is now always passed to the Vercel CLI in release.yml, usingVERCEL_TEAM_SLUGif set, otherwise falling back toVERCEL_ORG_ID. Previously, no scope was passed whenVERCEL_TEAM_SLUGwas unset, which could cause deploys to target the wrong project. TheVERCEL_TEAM_SLUGdescription in release.md is updated to reflect its role as an override rather than a required variable.Macroscope summarized 3d0ba1f.
Note
Medium Risk
Touches the release workflow’s Vercel deployment/aliasing steps; a wrong scope value could break production deploys or aliases, but the change is small and localized.
Overview
Ensures the release workflow always passes an explicit Vercel CLI
--scopewhen deploying and aliasing the hosted web app, usingVERCEL_TEAM_SLUGwhen set and falling back toVERCEL_ORG_IDotherwise.Updates the release docs to clarify
VERCEL_TEAM_SLUGis an optional override for the default org scope.Reviewed by Cursor Bugbot for commit 3d0ba1f. Bugbot is set up for automated code reviews on this repo. Configure here.