The Medical Center API requires several environment variables to function properly. These variables configure database connections, Supabase authentication, and other critical services.
Purpose: Public API key for client-side authentication and public operations.Security: This key is safe to use in client applications as it has limited permissions.How to find it:
Purpose: Server-side API key with full access for administrative operations.Security: ⚠️ Keep this key secret! Never expose it in client-side code or commit it to version control.How to find it:
# Database Configuration# For migrations (development)DATABASE_URL="postgresql://postgres:your_password@localhost:5432/medical_center"# For production with connection pooling# DATABASE_URL="postgresql://user:[email protected]:6543/postgres?pgbouncer=true"# Supabase ConfigurationSUPABASE_URL="https://your-project-id.supabase.co"SUPABASE_ANON_KEY="your_anon_key_here"SUPABASE_SERVICE_ROLE_KEY="your_service_role_key_here"
# Local PostgreSQLDATABASE_URL="postgresql://postgres:postgres@localhost:5432/medical_center_dev"# Supabase development projectSUPABASE_URL="https://dev-project.supabase.co"SUPABASE_ANON_KEY="dev_anon_key"SUPABASE_SERVICE_ROLE_KEY="dev_service_role_key"