Utilizing database branching
Database branching is a feature from Supabase that deploys multiple versions of your database on your instance on supabase.com. Before I tell you how it works, let’s answer the question: why is that useful?
- When working in a big team and developers implement features, they usually cannot give the repository to the manager and tell them, “Go check it out.” Instead, they commit their feature and want it to be available as a preview.
- Many companies work with different staging deployments. For example, before something reaches production, it could be deployed to a
TEST.your-application.domain
URL that contains only test data to always check out the most recent version of the application in development. Then, many also useSTAGING.your-application.domain
, which usually is a version that is already agreed to be published soon, contains more realistic data (sometimes a copy of production), and when everything runs fine there, it...