Skip to content

feat: fall back to .env when .env.local is absent#7

Merged
agarciar merged 1 commit into
mainfrom
feat/env-dotenv-fallback
Jun 4, 2026
Merged

feat: fall back to .env when .env.local is absent#7
agarciar merged 1 commit into
mainfrom
feat/env-dotenv-fallback

Conversation

@agarciar
Copy link
Copy Markdown
Contributor

@agarciar agarciar commented Jun 4, 2026

Summary

  • Credentials loader now tries .env as fallback when .env.local does not exist at the workspace root
  • .env.local still takes precedence when both files are present
  • Error messages updated to mention both file options
  • Two new tests: fallback behaviour and precedence

Test plan

  • pnpm test passes (44 tests)
  • New test: loads from .env when .env.local absent
  • New test: .env.local wins when both exist

🤖 Generated with Claude Code

If .env.local does not exist at the workspace root, the credentials
loader now tries .env before giving up. .env.local still wins when
both files are present. Bumps to 0.1.2.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@agarciar agarciar merged commit 80b5c19 into main Jun 4, 2026
7 checks passed
@agarciar agarciar deleted the feat/env-dotenv-fallback branch June 4, 2026 15:58
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