Config
The @acme/config package provides validated environment variables and shared configuration constants.
Usage
How it works
Environment variables are validated at import time using Zod:
If any variable is missing or invalid, the process exits immediately with a descriptive error message.
Shared constants
Adding a new variable
- Add the variable to the Zod schema in
src/index.ts - Add the variable to
.env.examplein the repo root - Set the value in each deployment environment