Skip to content

[cli] Use promote flow when targeting production alias#14755

Merged
onsclom merged 7 commits intomainfrom
austinmerrick/make-alias-use-promote-flow
Jan 27, 2026
Merged

[cli] Use promote flow when targeting production alias#14755
onsclom merged 7 commits intomainfrom
austinmerrick/make-alias-use-promote-flow

Conversation

@onsclom
Copy link
Copy Markdown
Contributor

@onsclom onsclom commented Jan 27, 2026

vc alias set [alias] [production alias] causes problems when users expect that to promote the alias. For example, https://linear.app/vercel/issue/PIPE-5641/unexpected-rollback-when-an-aliased-domain-is-edited-oror-00922719.

This updates vc alias set so that if we detect the target alias is a production alias, we use the promote flow.

image

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jan 27, 2026

🦋 Changeset detected

Latest commit: c64d2a9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 27, 2026

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-rk35lb25s.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-rk35lb25s.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 27, 2026

🧪 Unit Test Strategy

Comparing: ff17033c64d2a9 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 1 (2%)
  1. vercel
Unaffected packages - 40 (98%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/introspection
  24. @vercel/koa
  25. @vercel/nestjs
  26. @vercel/next
  27. @vercel/node
  28. @vercel/oidc
  29. @vercel/oidc-aws-credentials-provider
  30. @vercel/python
  31. @vercel/python-analysis
  32. @vercel/redwood
  33. @vercel/related-projects
  34. @vercel/remix-builder
  35. @vercel/routing-utils
  36. @vercel/ruby
  37. @vercel/rust
  38. @vercel/static-build
  39. @vercel/static-config
  40. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Handled separately (Version Packages PRs or run-e2e-tests label)
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

@onsclom onsclom marked this pull request as ready for review January 27, 2026 18:49
@onsclom onsclom requested a review from a team as a code owner January 27, 2026 18:49
Copy link
Copy Markdown
Member

@tknickman tknickman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one note, but looks good!

Co-authored-by: Thomas Knickman <tom.knickman@vercel.com>
@onsclom onsclom merged commit ad16ec9 into main Jan 27, 2026
120 checks passed
@onsclom onsclom deleted the austinmerrick/make-alias-use-promote-flow branch January 27, 2026 20:29
ricardo-agz pushed a commit that referenced this pull request Jan 28, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## vercel@50.8.0

### Minor Changes

- Updated `vercel alias` command to use the promote flow when aliasing
to a production alias. When the target alias matches one of the
project's configured production domains, the command now calls the
promote API instead of directly assigning the alias, ensuring proper
production deployment handling.
([#14755](#14755))

### Patch Changes

- [experimental] Adds support for building multiple services when
framework mode is set to "services"
([#14739](#14739))

-   Updated dependencies \[]:
    -   @vercel/static-build@2.8.28

## @vercel/fs-detectors@5.7.17

### Patch Changes

- [experimental] Adds support for building multiple services when
framework mode is set to "services"
([#14739](#14739))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
onsclom added a commit that referenced this pull request Jan 28, 2026
onsclom added a commit that referenced this pull request Jan 28, 2026
[#inc-4941-customer-reports-of-stagingpreview-being-promoted-to-prod-after-cl](https://vercel.slack.com/archives/C0AB4BUNM0X)

Reverts #14755
adriancooney pushed a commit that referenced this pull request Jan 30, 2026
[#inc-4941-customer-reports-of-stagingpreview-being-promoted-to-prod-after-cl](https://vercel.slack.com/archives/C0AB4BUNM0X)

Reverts #14755
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants