Skip to content

feat: environment variables in Node.js article#38

Merged
lmammino merged 3 commits into
mainfrom
feat/env-vars-article
Jul 4, 2026
Merged

feat: environment variables in Node.js article#38
lmammino merged 3 commits into
mainfrom
feat/env-vars-article

Conversation

@lmammino

@lmammino lmammino commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

New blog article: Environment Variables in Node.js (content calendar item #2, targeting "node js environment variables", ~8k/mo).

Covers:

  • When to use env vars and when not to (including the secrets nuance: leak vectors, secrets managers, integrated rotation)
  • process.env fundamentals, string coercion traps, platform differences
  • Native .env loading (--env-file, --env-file-if-exists, process.loadEnvFile(), util.parseEnv()) vs dotenv
  • Validation strategies (manual and Zod), config module pattern
  • Security best practices (gitignore, redacted logging, child process inheritance, production secrets management)
  • Node.js-specific variables reference (NODE_ENV, NODE_OPTIONS, NODE_DEBUG, TLS, performance, etc.)
  • FAQ section for schema markup

Editorial notes:

  • All version claims verified against the official Node.js docs (--env-file-if-exists 22.9.0, loadEnvFile/parseEnv 21.7 + 20.12 backport, multiline values 20.12+)
  • Examples deliberately avoid promoting secrets in env vars (non-sensitive vars like API_URL, PORT, LOG_LEVEL); DB URLs and API keys only appear in the security discussion
  • Marks article Add support for font awesome #2 as COMPLETE in the content calendar

Also includes (from earlier commit on this branch): analytics disabled in dev mode in Layout.astro.

🤖 Generated with Claude Code

@lmammino
lmammino merged commit e529fc0 into main Jul 4, 2026
1 check passed
@lmammino
lmammino deleted the feat/env-vars-article branch July 4, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant