How do we preview changes applyed by supabase config push
In my prior job, I used to use terraform's plan / apply model in order to verify changes before actually pushing them to a production environment (and get a nice diff)
I would love to be able to setup a review loop for folks making changes to the config.toml
Is there an equivalent for the config.toml config push command?
5 Replies
The closest thing that i can think off related to this might be supabase branches https://supabase.com/docs/guides/deployment/branching for previewing changes
Branching | Supabase Docs
Use Supabase Branches to test and preview changes
Darn!!! Is there a nice view for diffing two branches? (And do you personally use config as code?)
personally i don't change the config.toml all that much. I manage preview changes using migration files for the database and branching using github. There is a diff functionality for migration changes to the database but that is it i think
Ah fair enough!!!
I set config.toml up for preview, but was hoping to do production as well (but the lack of a plan makes me a bit squeamish)
Thank you for the help!!!
On the same note, do you find db diff or repeatedly running db pull more effective
(It seems like db pull also pulls changes)
i would make the changes locally via the supabase ui for database then diff locally to produce migration files then send those files up to a branch and see if the changes look sensible (branching can sometimes not work so be wary of that). If everything looks good, merging my github branch will merge changes into prod