Skip to content

feat: env context loading#2

Merged
cmilesdev merged 1 commit intomainfrom
cmilesdev/env-contextual-loading
Jan 13, 2026
Merged

feat: env context loading#2
cmilesdev merged 1 commit intomainfrom
cmilesdev/env-contextual-loading

Conversation

@cmilesdev
Copy link
Member

  • Added layered env file loading based on APP_ENV, supporting .env.local, .env.staging, and .env.production on top of .env, while preserving .env.testing and .env.host overlays.
  • Updated env loader defaults to only set APP_ENV=local when unset.
  • Documented env loading order and updated loader doc comments/README.
  • Added full test coverage for env layering, loader idempotency, and defaulting behavior.
  • Introduced SetAppEnv plus convenience setters with doc examples and tests.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@cmilesdev cmilesdev merged commit 713c4a8 into main Jan 13, 2026
1 check passed
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.

2 participants