Briefle words · Code & architecture
Environment variable
A named setting the running program reads from its surroundings, like a database address or API key, so it isn't hardcoded in the code.
Say it to an AI
TypeScript config module for our Node API that reads DATABASE_URL, COURIER_API_KEY and TRACKING_API_URL from environment variables, Twelve-Factor style. Validate them with zod at startup so the app fails fast, and no hardcoded secrets or URLs anywhere in the code.
How an expert would brief the stronger version of “App configuration”.
See it
Try it as a puzzle →The config file of a delivery company's backend, with its database, payment and tracking settings.
Why: A reads DATABASE_URL, COURIER_API_KEY and TRACKING_API_URL from 'process.env' and nowhere else; B reads them too, but backs each one with a real value typed into config.ts.
Related words
Room 1 · Essentials
Learn “Environment variable” in a five-minute lesson