Skip to content

[codex] Fix Vercel release web deploy scope#2611

Merged
juliusmarminge merged 1 commit intomainfrom
codex/fix-vercel-release-scope
May 9, 2026
Merged

[codex] Fix Vercel release web deploy scope#2611
juliusmarminge merged 1 commit intomainfrom
codex/fix-vercel-release-scope

Conversation

@juliusmarminge
Copy link
Copy Markdown
Member

@juliusmarminge juliusmarminge commented May 9, 2026

What changed

  • Always pass an explicit Vercel CLI scope in the release workflow's hosted web deploy job.
  • Use VERCEL_TEAM_SLUG when provided, otherwise fall back to the required VERCEL_ORG_ID secret.
  • Update release docs to describe the new scope behavior.

Why

The scheduled release run deployed the hosted web app successfully, but failed when aliasing nightly.app.t3.codes. Because VERCEL_TEAM_SLUG was empty, the Vercel CLI used the default personal scope and rejected the alias operation as unauthorized.

Validation

  • bun fmt
  • bun lint
  • bun typecheck
  • bun run release:smoke

Note

Fix Vercel web deploy scope to fall back to VERCEL_ORG_ID when VERCEL_TEAM_SLUG is unset

The --scope flag is now always passed to the Vercel CLI in release.yml, using VERCEL_TEAM_SLUG if set, otherwise falling back to VERCEL_ORG_ID. Previously, no scope was passed when VERCEL_TEAM_SLUG was unset, which could cause deploys to target the wrong project. The VERCEL_TEAM_SLUG description 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 --scope when deploying and aliasing the hosted web app, using VERCEL_TEAM_SLUG when set and falling back to VERCEL_ORG_ID otherwise.

Updates the release docs to clarify VERCEL_TEAM_SLUG is 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.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 9, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 09ac34c4-d0dd-41e6-9414-6dd32585aa50

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-vercel-release-scope

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels May 9, 2026
@juliusmarminge juliusmarminge marked this pull request as ready for review May 9, 2026 05:00
@juliusmarminge juliusmarminge merged commit 39371c6 into main May 9, 2026
17 checks passed
@juliusmarminge juliusmarminge deleted the codex/fix-vercel-release-scope branch May 9, 2026 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant