#523 - Centralize and type environment configuration
@brijesh-amin is already working on this.
Since Jul 17, 2026.
Assessment
This issue has not been assessed yet.
Description
Parent: #523
Objective
Create a single validated env/config surface to prevent late runtime failures and inconsistent module-level env access.
In scope
- Introduce centralized env schema validation (required vars + type coercion)
- Export typed config consumed by runtime modules
- Migrate selected modules from direct
process.envreads to typed config
Acceptance criteria
- Startup fails fast with actionable errors when required env vars are missing/invalid
- Typed config object is the primary read path in touched modules
- Reduced ad-hoc env access in updated areas
- Tests cover invalid/missing env behavior
Notes
Adopt incrementally to minimize merge conflict risk.
- Dominant language
- TypeScript
- Stars
- 1
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bcgov/range-api
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
-
Renew MyRange SSL certificate (expires Apr 14, 2027)Possibly taken @brijesh-amin claimed this 5 days ago. Open
-
#523 - Reduce any usage in db2 model/query layerMay be free again @brijesh-amin claimed this 78 days ago, and no pull request is open. Open
-
#523 - TypeScript hardening for runtime-critical pathMay be free again @brijesh-amin claimed this 78 days ago, and no pull request is open. Open
-
#523 - Decompose auth middleware responsibilitiesMay be free again @brijesh-amin claimed this 78 days ago, and no pull request is open. Open
Similar issues
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
LucasSantana-Dev/Lucky#2637 ·
Maintainers usually reply within 1 day
-
Show the error reference on the error pagePossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
tomjn/coilbox-hub#454 ·
Maintainers usually reply within 1 day
-
frontend
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
icssc/peterportal-client#1224 · 1 comment ·
-
testplan-item
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day