Security & Best Practices

Environment Variables

What It Is

Configuration values stored outside your code, different per environment

Analogy

Settings you adjust depending on location — your home thermostat vs. the office

Try It Out

🛠️Development
http://localhost:3000

Local development with test data

Environment Variables
DATABASE_URL="postgresql://localhost:5432/dev_db"
API_KEY="test_key_123"
DEBUG="true"
LOG_LEVEL="debug"
🛠️

Local Development

Your local machine. Safe to experiment and break things.