Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

#523 - Centralize and type environment configuration

Đang mở
#528 0 bình luận 0 reaction 1 người được giao Xem trên GitHub

@brijesh-amin đang làm issue này rồi.

Từ ngày 17/7/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.env reads 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.

Ngôn ngữ chính
TypeScript
Star
1
Fork
7
Merge trung bình
49 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bcgov/range-api

Tất cả issue của bcgov/range-api

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.