Skip to content

packages/config: Zod-validated env loader - #5

Merged
ThomasHartDev merged 1 commit into
mainfrom
thomas/feat/config
Jul 18, 2026
Merged

packages/config: Zod-validated env loader#5
ThomasHartDev merged 1 commit into
mainfrom
thomas/feat/config

Conversation

@ThomasHartDev

Copy link
Copy Markdown
Owner

adds a small packages/config for loading env vars through a zod schema, so each service validates its config once at startup instead of poking at process.env everywhere. mostly coercion helpers for the usual env shapes (bool, int, port, url, enum), plus a loadConfig that aggregates every bad or missing var into one error instead of dying on the first, and redacts anything you flag as a secret so passwords don't end up in the logs. result comes back frozen. tests cover the coercion edge cases and the aggregation/redaction paths anyway.

@ThomasHartDev
ThomasHartDev merged commit 6769c8e into main Jul 18, 2026
1 check passed
@ThomasHartDev
ThomasHartDev deleted the thomas/feat/config branch July 18, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant