chore: update docs of supabase instructions

This commit is contained in:
Rotimi Best
2025-10-04 06:56:14 +01:00
parent 3bbc5d0927
commit 629753bcd0
4 changed files with 32 additions and 5 deletions
+4 -2
View File
@@ -9,11 +9,13 @@ tasks:
cd ../dashboard &&
cp .env.example .env &&
cd ../.. &&
pnpm supabase:start
pnpx supabase start
command: |
SUPABASE_ANON_KEY=$(pnpm supabase:status | grep "anon key" | awk '{print $3}' | tr -d '\\n') &&
SUPABASE_ANON_KEY=$(pnpx supabase status | grep "anon key" | awk '{print $3}' | tr -d '\\n') &&
cd apps/dashboard &&
sed -i "s/PUBLIC_SUPABASE_ANON_KEY=.*/PUBLIC_SUPABASE_ANON_KEY=$SUPABASE_ANON_KEY/g" .env &&
sed -i "s/PRIVATE_SUPABASE_SERVICE_ROLE=.*/PRIVATE_SUPABASE_SERVICE_ROLE=$SUPABASE_SERVICE_ROLE/g" .env &&
cd ../classroomio-com &&
cd ../.. &&
pnpm dev