Environment Variables
Securely store API keys and configuration for your app.
Security Warning
Never hardcode API keys or secrets in your code. Always use environment variables to keep sensitive data secure.
Common Environment Variables
- VITE_SUPABASE_URL - Your Supabase project URL
- VITE_SUPABASE_ANON_KEY - Supabase anonymous key
- STRIPE_SECRET_KEY - Stripe server-side key
- VITE_STRIPE_PUBLISHABLE_KEY - Stripe client key
- OPENAI_API_KEY - For AI features
VITE_ Prefix
Variables starting with VITE_ are exposed to the browser. Only use this prefix for public keys (like Supabase anon key). Keep secret keys (like Stripe secret) without the prefix - they'll only be available server-side.