Manage development and production environments
.env.local
file in the findu root directory controls everything:
SUPABASE_URL_DEV
SUPABASE_ANON_KEY_DEV
SUPABASE_SERVICE_ROLE_KEY_DEV
RAILWAY_TOKEN_DEV
SUPABASE_URL_PROD
SUPABASE_ANON_KEY_PROD
SUPABASE_SERVICE_ROLE_KEY_PROD
RAILWAY_TOKEN_PROD
Always work in development
Test thoroughly before production
Use preview branches for experiments
Monitor production carefully
MCP not connecting to database
Wrong environment showing
Can't switch environments
.env.local
for both environments..env.local
- It’s gitignored for a reason