morvudM
Convex Community6mo ago
1 reply
morvud

Deploying to existing preview deployment

A few days ago I was able to deploy my code to an existing preview deployment by using

npx convex deploy --preview-name

but now I get an error when I try to do that

The
--preview-name
flag has been deprecated in favor of
--preview-create
. Please re-run the command using
--preview-create
instead.

However the difference between these two commands is that --preview-create deletes the existing env and creates a new one which means I need to update the env variables and restore from backup every time I push a change. Is there a way for me to use the old command?
Was this page helpful?