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
- Go to supabase.com
- Open your project
- Navigate to Settings → API
- Copy the Project URL and anon/public key
Security Notes
- Never commit
.envfiles 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