Database branches/Stages
This would be a great feature if it's possible!
It's currently hard to create individual development environments for users or create "preview" deployments for testing because there's only two branches, production, and development
11 Replies
makes sense. there's a lot of work behind the scenes right now on what we want to do to improve dev vs prod workflows and enable more flexibility. @Michal Srb has been working on that project.
The one "staging" workaround I know of right now is to have another team member on your project that is a "staging" account, but that's still just one extra account getting overwritten, vs. preview deploys where you'd have possibly many versions you'd need to garbage collect
Another possible workaround is to use a different project as staging. You'd have to do some manual work to swap around the
convex.json
which isn't super neat, but if staging is super important there is probably a way to hack together a script for this.Thanks for the feedback on the workarounds
So will each team member get a development environment? Or should we do something where we don't commit the convex.json. And like Indy mentioned potentially swap those out
I guess I'm a little worried if two developers are working on dev at the same time.
Every member gets their own development environment
Ahh amazing
convex.json is fine to share between you, it only references the prod url
the dev url is in .env.local which is usually in .gitignore
so you have a shared prod environment you can both do
convex deploy
to, but convex dev
will point at your own oneOkay cool that makes sense. Thanks for the verification
Hello! Is there any latest updates on dev vs prod workflows? If there is a best practice for that then I'd love to use that, otherwise will go with workaround discussed here.
We're very close to releasing preview deployments, stay tuned just a little bit longer 🙂
@Chad Maycumber @Siraj it's out in Convex 1.5 https://news.convex.dev/announcing-convex-1-5/
Convex News
Announcing Convex 1.5
Convex 1.5 adds support for preview deployments, improvements to the Convex runtime, and more.