# Configuration Checked at Startup

An API reads every setting it needs in one config module that checks them all with Zod when the server starts, so a missing or mistyped setting stops it at once with a message naming each problem, and NODE_ENV, an .env file and the host's own settings decide the values in each place it runs.

![Cheat sheet: Configuration Checked at Startup](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/a7c2eb7461714cffb03f879f672708e5.webp)

- Category: Node.js
- Level: Journeyman
- Tags: env-file, Fail Fast, NODE_ENV, nodejs, process.env, web-development, Zod
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/node-pro-configuration-cheat-sheet
