Skip to content

feat(config): strict env validation for safer startup - #16

Open
Chere3 wants to merge 1 commit into
mainfrom
feat/runtime-env-validation-and-healthcheck-20260306
Open

Chere3 wants to merge 1 commit into
mainfrom
feat/runtime-env-validation-and-healthcheck-20260306

Conversation

@Chere3

@Chere3 Chere3 commented Mar 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • add src/env.ts with strict required env loading (TOKEN, MONGO_URI)
  • wire config to validated env values instead of nullable process.env
  • document runtime safety behavior in README

Validation

  • npm run check

Impact

This improves production reliability by failing fast on misconfiguration instead of booting with undefined secrets.

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