This post could have ended here, but I’ll take this opportunity to pass the overtly click-baity title and talk about how I manage environment variables in my Node.js projects. There are several issues with reading directly from process.env: It’s not type safe It’s not validated It’s not immutable Type safety & validation I like to use Zod to parse and validate outside data in my applications, and