Skip to content

Move env-file loading into a shared helper #255

Closed

Description

@kilodesodiq-arch

Problem Statement. Env-file resolution appears twice: main.ts and
app.module.ts. Slight drift is possible between them.

Technical Context. app/backend/src/main.ts,
app/backend/src/app.module.ts.

Expected Outcome. A loadEnv() helper exported by
src/common/utils/env-loader.ts is the only place env files are searched; main.ts and
app.module.ts both call it.

Acceptance Criteria.

  • A test asserts both call paths agree on the final env state for a fixture of
    candidate env files.
  • Honest precedence: dotenv always wins over the OS env (or the opposite, with a
    documented order).

Files or modules likely to be affected.
new src/common/utils/env-loader.ts,
main.ts, app.module.ts.

Difficulty. Easy
Estimated effort. XS



Backlog item #47 from `docs/maintainer-issue-backlog.md.

Activity

  1. Devadakene commented on Jul 16, 2026

    @Devadakene
    Contributor

    I am confident that I can implement this having worked on similar issues in the past

  2. grantfox-oss commented on Jul 16, 2026

    @grantfox-oss

    🦊 GrantFox — @Devadakene has been assigned to this issue as part of the Official Campaign | FWC26 campaign!

    Next steps:

    1. Open a Pull Request referencing this issue (e.g., Closes #255)
    2. Your PR will be reviewed by the ChainForgee maintainers

    Good luck! Track your progress on GrantFox.

  3. grantfox-oss commented on Jul 17, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign | FWC26 campaign!

    @Opulencechuks's PR #376 was approved and merged by @kilodesodiq-arch.

    🏆 @Opulencechuks: You earned 40 FoxPoints for this contribution! Your current tier: Builder (2,214 total points). Track your full progress on GrantFox.

    👏 Great work, @Opulencechuks! Keep contributing to ChainForgee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions