fix: Backend: Implement environment configuration and validation#147
Closed
supreme2580 wants to merge 1 commit intoMissBlue00:mainfrom
Closed
fix: Backend: Implement environment configuration and validation#147supreme2580 wants to merge 1 commit intoMissBlue00:mainfrom
supreme2580 wants to merge 1 commit intoMissBlue00:mainfrom
Conversation
|
Someone is attempting to deploy a commit to the missblue00's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes ISSUE-002: Set up a robust configuration module using NestJS @nestjs/config. Implement schema validation to ensure the application fails fast if critical environment variables are missing or invalid. Requirements: Implement ConfigModule.forRoot() in app.module.ts. Add schema validation using zod or joi. Required Variables: DATABASE_URL (PostgreSQL connection string) JWT_SECRET (Authentication signing key) TREASURY_PRIVATE_KEY (Stellar treasury signing key) STELLAR_RPC_URL (Horizon/Soroban RPC) BTC_NODE_URL, ETH_NODE_URL REDIS_URL (Queue management) Failure Policy: The application must exit during startup with a clear error message if validation fails.