Skip to content

Consolidate configuration and add typed environment validation - #341

Merged
OthmanImam merged 1 commit into
StellAIverse:mainfrom
memplethee-lab:feat/first
Jun 22, 2026
Merged

Consolidate configuration and add typed environment validation#341
OthmanImam merged 1 commit into
StellAIverse:mainfrom
memplethee-lab:feat/first

Conversation

@memplethee-lab

Copy link
Copy Markdown
Contributor

Closes #296

  • Add comprehensive environment validation with class-validator
  • Extract CORS, Helmet, and Swagger configs from main.ts into dedicated factories
  • Remove unused standalone typeorm.config.ts
  • Replace raw process.env access with ConfigService injection in:
    • auth-core.module.ts (JWT configuration)
    • email.service.ts (SMTP/email vars)
    • aave.adapter.ts (RPC URLs)
    • compound.adapter.ts (RPC URLs)
    • main.ts (PORT, NODE_ENV)
  • Wire ConfigModule with validateEnv function for startup fail-fast validation

- Add comprehensive environment validation with class-validator
- Extract CORS, Helmet, and Swagger configs from main.ts into dedicated factories
- Remove unused standalone typeorm.config.ts
- Replace raw process.env access with ConfigService injection in:
  - auth-core.module.ts (JWT configuration)
  - email.service.ts (SMTP/email vars)
  - aave.adapter.ts (RPC URLs)
  - compound.adapter.ts (RPC URLs)
  - main.ts (PORT, NODE_ENV)
- Wire ConfigModule with validateEnv function for startup fail-fast validation
@OthmanImam
OthmanImam merged commit a47cfda into StellAIverse:main Jun 22, 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.

Consolidate Configuration and Establish Typed Environment Validation

2 participants