What is the proper way to handle supabase directory being a few paths deep into my project?
Recently changed my repo into a monorepo with nx. The schema we want to have is supabase lives in
./libs/db/supabase
./libs/db/supabase
. I tried running commands like
supabase start --workdir ./libs/db/supabase
supabase start --workdir ./libs/db/supabase
from the command line, but it never seemed to apply my migrations properly. Only when I first cd into
./libs/db
./libs/db
then run
supabase start
supabase start
.
If I want some of my common supabase commands to be npm scripts, do I just have the script cd into that directory, run the command, then cd back out? Im thinking there has to be a better way to do this?
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.