Deployment practices?

I’m really interested to hear about how you manage your deployments, particularly those of you with live users. I want to reduce the risk of breaking anything. I have staging + production environments in Supabase, and I’m trying to work out the best way to use WeWeb’s staging environment in sync with them. I’m thinking something like

  1. Keep WeWeb pointed at staging DB while doing dev work
  2. When ready to test, push to staging and do testing there (manually for now)
  3. When satisfied with testing, swap WeWeb to point at production DB
  4. Push to staging, test, push to production

But really am open to suggestions. Curious as to how you all manage this?

Yes, what you describe is a valid approach. I wrote a guide on how to mock request to re-route them to a dev enviroment in Supabase, but @flo confirmed that it’s okay to switch enviroments in WeWeb via changing credentials. So your approach seems fine. You could also test Supabase “headlessly” to a certain extent via some automated testing, or mocking the API it generates.