Environment Variables
Authentication in SvelteBolt relies on the following environment variables:
Required Variables
Add the following variables to your .env
file:
PUBLIC_SUPABASE_URL=<your-supabase-url>
PUBLIC_SUPABASE_ANON_KEY=<your-anon-key>
SUPABASE_SERVICE_ROLE_KEY=<your-service-role-key>
Finding these values
- Log in to the Supabase Dashboard.
- Go to Settings > API.
Copy the following:
- Project URL →
PUBLIC_SUPABASE_URL
- Anon Key →
PUBLIC_SUPABASE_ANON_KEY
- Service Role Key →
SUPABASE_SERVICE_ROLE_KEY