Supasheet.

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_3BJgxAaH

The 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-key

Getting Supabase Credentials

  1. Go to supabase.com and sign in
  2. Open your project
  3. Go to SettingsAPI
  4. Copy:
    • Project URLVITE_SUPABASE_URL
    • Publishable keyVITE_SUPABASE_PUBLISHABLE_KEY

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 .env files to git, add it to .gitignore

Next Steps