Question · NestJS course · Module 12: Containers and CI/CD

Why not .env in production

Why is storing secrets in .env files in production dangerous?

Answer options

  • .env files are too slow to read
  • Risk of accidental commit, no rotation, no audit, plain text
  • .env files don't work in Node.js
  • .env files consume too much RAM

You can check the correct answer by solving this task in the CodeWorlds game.