Supabase Vitepress
Coming Soon
The Steps
- Create
docs/utils/supabase.ts
- Make sure
.env
is inside of thedocs
folder. - prefix the env variables with
VITE_
so instead ofSUPABASE_KEY
I had to doVITE_SUPABASE_KEY
. - Inside of the markdown file I also had to do
import { supabase } from '/utils/supabase'
- I also disabled RLS (row level security) in supabase to test. I don't think this is recommended, but if data isn't coming through it could be the policy you have set up on your database.