hi, I am new to supaBase. How do I work with Supa...
# off-topic
c
hi, I am new to supaBase. How do I work with SupaBase in production while my team works in development? Example, redirecting on authentication would redirect based on "the url set". What if I want my product to remain live while I work on the local version.
s
I normally create two projects, for example
project-stg
and
project-prod
, then use a migration library to keep my schemas in sync along with all my functions and views. Now you can use the
url
and
anon
key for both projects in their respective environment.
c
wow
Thank you so much. I am new to this and I have a production app online (still in test). Anytime we want to test, we have to take the app offline because we want to test with our local file. A few questions: 1. are the two projects (stg and prod) going to be on supabase 2. what migration lib should I use
s
Yes both stg and prod are Supabase hosted DBs, I use ley for managing my migrations, but there are other tools available. You can see my setup in my Waiting List project https://github.com/silentworks/waiting-list
c
Thank you so much