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?1 Reply
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!