Handling multiple environments without downtime
So here is the situation, we have two environments/branches in Supabase -> staging and production. We also have tho apps on the App store called App-Staging and App-Production (this one has been live on the App store for 2 months). So our worklfow is that we develop a new feature or rather change an existing feature on db-staging an deploy a new test-flight version to App-Staging where we can test it. After we are happy with it we would like to push it to db-production and App-production. The problem is that the new staging updates are not compatible with the current live version, meaning that as soon as we push db-staging to production the current live version App-production breaks. And it stays broken until the App-Production is reviewed by Apple (usually takes a day) meaning there is a day of downtime. But we need the db-production updated in order for us to test on test flight of App-production + Apple will reject the app if we try and submit a broken version.
What would be the cleanest/correct solution here to minimize downtime? Any suggestions/resources? I hope I explained it well, if anyone needs clarification anywhere lmk. Thanks!
What would be the cleanest/correct solution here to minimize downtime? Any suggestions/resources? I hope I explained it well, if anyone needs clarification anywhere lmk. Thanks!