Skip to main content

Environment Variables

CommonPlace uses environment variables for configuration. Create a .env file in the project root with the following variables.

Required Variables

# Supabase connection
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your-anon-key

These are required for the app to function.

Optional Variables

# Development mode
VITE_DEV_MODE=true

# Feature flags
VITE_ENABLE_VOICE=true
VITE_ENABLE_MEBOOK=true

Getting Supabase Credentials

  1. Go to supabase.com
  2. Open your project
  3. Navigate to Settings → API
  4. Copy the Project URL and anon/public key

Security Notes

  • Never commit .env files to version control
  • The anon key is safe to expose (it's public)
  • Keep the service role key secret

Verifying Configuration

After setting up your .env, run:

npm run dev

If the app loads and you can access the auth page, your configuration is correct.


Last updated: 2026-02-07