Skip to content

Fix #2: Backend: Implement environment configuration and validation#155

Open
supreme2580 wants to merge 1 commit into
MissBlue00:mainfrom
supreme2580:fix/issue-2
Open

Fix #2: Backend: Implement environment configuration and validation#155
supreme2580 wants to merge 1 commit into
MissBlue00:mainfrom
supreme2580:fix/issue-2

Conversation

@supreme2580
Copy link
Copy Markdown
Contributor

Fixes #2

Backend: Implement environment configuration and validation

Closes #2

- Add @nestjs/config with Zod schema validation for fail-fast startup
- Validate required variables: DATABASE_URL, JWT_SECRET, TREASURY_PRIVATE_KEY,
  STELLAR_RPC_URL, BTC_NODE_URL, ETH_NODE_URL, REDIS_URL
- Create namespaced config registrations (app, jwt, stellar, blockchain,
  database, redis) for clean access via ConfigService
- Replace all direct process.env usage with ConfigService injection
- Update .env.example with new required variables and descriptions
- Fix e2e test to provide ConfigModule in test harness

Co-authored-by: CommandCodeBot <noreply@commandcode.ai>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

@supreme2580 is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Backend: Implement environment configuration and validation

1 participant