Environment Variables
Secret values (API keys, database URLs, credentials) stored outside your code so they never end up in version control.
Environment variables are configuration values that live outside your source code, typically in a .env file on your local machine or in your hosting platform's settings dashboard. They store sensitive information like API keys, database connection strings, and third-party service credentials.
The golden rule: never commit secrets to Git. If an API key ends up in your repository, anyone with access can use it. Environment variables solve this by keeping secrets separate from code. Your code reads them at runtime (process.env.DATABASE_URL), but the actual values are never in the codebase.
For vibe coders, environment variable management is a practical skill. Every project with a database, payment processor, email service, or analytics tool will have environment variables. Knowing how to set them locally (.env.local), in CI/CD, and in production (Vercel, Railway) is essential for deployment.
Related Courses
Links open the course details directly on the Courses page.