Environment Variables
Configure Supasheet with environment variables
Development (.env)
For local development with Supabase running locally:
# Supabase (Local)
VITE_SUPABASE_URL=http://127.0.0.1:54321
VITE_SUPABASE_PUBLISHABLE_KEY=sb_publishable_ACJWlzQHlZjBrEguHvfOxg_3BJgxAaHThe local publishable key above is the default used by npx supabase start. Run npx supabase status to confirm your local values.
Production (.env)
# Supabase (Get from supabase.com project settings)
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_PUBLISHABLE_KEY=your-publishable-keyGetting Supabase Credentials
- Go to supabase.com and sign in
- Open your project
- Go to Settings → API
- Copy:
- Project URL →
VITE_SUPABASE_URL - Publishable key →
VITE_SUPABASE_PUBLISHABLE_KEY
- Project URL →
Security
- All
VITE_*variables are bundled into the client-side build and exposed in the browser, only put public-safe values here - The publishable key is designed to be public; Row Level Security policies enforce data access
- Never commit
.envfiles to git, add it to.gitignore
Next Steps
- Deployment - Deploy to production
- Production Checklist - Pre-launch checks