-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Problem
vx redeploy always redeploys the main branch deployment, ignoring the current git branch or worktree context.
Expected: When run from a worktree checked out to feat/leroy-onboard, vx redeploy should retrigger the preview deployment for that branch.
Actual: It redeployed main (airshelf-bmyzj56bz-eugeneoteam.vercel.app), not the feat/leroy-onboard preview.
Context
We needed to retrigger the Vercel preview for feat/leroy-onboard after adding missing DATABASE_URL / DIRECT_DATABASE_URL env vars. vx redeploy didn't help — had to push an empty commit from the worktree instead.
Suggested fix
vx redeploy should:
- Detect the current git branch (
git branch --show-current) - Find the latest deployment for that branch (filter by
meta.githubCommitRef) - Redeploy that deployment, not the latest production one
Alternatively, support vx redeploy --branch feat/leroy-onboard to explicitly target a branch.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels