Skip to content
Shop

CommunityJoin Our PatreonDonate

Sponsored Ads

Sponsored Ads

Supabase Vitepress

Coming Soon

The Steps

  1. Create docs/utils/supabase.ts
  2. Make sure .env is inside of the docs folder.
  3. prefix the env variables with VITE_ so instead of SUPABASE_KEY I had to do VITE_SUPABASE_KEY.
  4. Inside of the markdown file I also had to do import { supabase } from '/utils/supabase'
  5. 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.

Resources