Environment Variables & Configuration — Roadmap Step & Resources
next.config.js, public vs server-only environment variables
- Level: intermediate
- Estimated time: 1 days
- Roadmap: Next.js Full Stack
Before this step
Study resources
- dotenv (Article) — The official dotenv package documentation for loading .env files into process.env.
- Environment Variables (Article) — The official Next.js documentation on public vs server-only environment variables.
- Environment Variables in Node.js (Video) — Web Dev Simplified shows how to properly store and hide API keys, secrets, and ports using dotenv.
Part of
- Next.js — section
- Next.js Full Stack roadmap — the full learning path