Startup Validation with Zod or Joi
Fail immediately at server startup if `JWT_SECRET` is missing or shorter than 256 bits (32 bytes). Never start an API server with an undefined or fallback secret!
Frequently Asked Questions
Should I commit my .env file to Git?
Never! Add .env and .env.* to your .gitignore. Provide a .env.example with placeholder instructions instead.