Skip to content

chore(backend): validate required environment variables at startup#59

Merged
greatest0fallt1me merged 2 commits intoStreampay-Org:mainfrom
Demilade01:chore/env-config-schema
Mar 25, 2026
Merged

chore(backend): validate required environment variables at startup#59
greatest0fallt1me merged 2 commits intoStreampay-Org:mainfrom
Demilade01:chore/env-config-schema

Conversation

@Demilade01
Copy link
Copy Markdown
Contributor

Implement Zod schema for PORT, DATABASE_URL, JWT_SECRET, RPC_URL, and NODE_ENV

Implement Zod schema for PORT, DATABASE_URL, JWT_SECRET, RPC_URL, and NODE_ENV
- Integrate fail-fast validation in app entry point
- Create .env.example with required configuration template
- Add comprehensive suite of 8 unit tests for environment validation
- Ensure 100% test and linting compliance
 closes Streampay-Org#15
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 25, 2026

@Demilade01 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@greatest0fallt1me greatest0fallt1me merged commit 112c52d into Streampay-Org:main Mar 25, 2026
1 check failed
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.

Environment configuration schema with envalid or zod

2 participants