convex-js icon indicating copy to clipboard operation
convex-js copied to clipboard

feat: preview-create becomes preview-deploy to allow updating of prev…

Open gary-ix opened this issue 2 months ago • 1 comments

…iew environments rather than always creating new ones

Problem

Currently --preview-create only creates new preview deployments and does not allow for updating a preview deployment.

Solution

Replaced --preview-create with --preview-deploy:

  • If preview deployment exists it pushes changes to that preview.
  • If preview deployment does not exist it creates the preview deployment.

Implementation

  • Added checkPreviewDeploymentExists() function
  • Routes to appropriate deployment function based on existence
  • Adds deprecation for --preview-create

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

gary-ix avatar Sep 25 '25 16:09 gary-ix