Skip to content

feat: validate environment configuration#39

Merged
prodbycorne merged 3 commits into
SmartDropLabs:mainfrom
leo1987820:feat/env-validation
Jun 27, 2026
Merged

feat: validate environment configuration#39
prodbycorne merged 3 commits into
SmartDropLabs:mainfrom
leo1987820:feat/env-validation

Conversation

@leo1987820

Copy link
Copy Markdown
Contributor

Summary

  • add envalid-based startup validation for runtime configuration
  • switch Redis configuration to a validated REDIS_URL and expose DATABASE_URL as a production-required setting
  • update .env.example and README with types, defaults, and required production vars
  • add Jest coverage for production validation failures and NODE_ENV=test defaults

Closes #21

Verification

  • npm test -- config.test.js --runInBand
  • npm test -- --runInBand

@prodbycorne

Copy link
Copy Markdown
Contributor

fix branch conflicts

@leo1987820 leo1987820 force-pushed the feat/env-validation branch from f6a9583 to ed55eb0 Compare June 25, 2026 18:16
@leo1987820

Copy link
Copy Markdown
Contributor Author

Updated the branch on top of current main and resolved the conflict with the new Redis graceful-degradation changes by keeping the lazy connection/offline-queue behavior while using the validated REDIS_URL.

Verification:

  • npm.cmd test -- config.test.js --runInBand
  • npm.cmd test -- --runInBand

@prodbycorne prodbycorne merged commit fda90bf into SmartDropLabs:main Jun 27, 2026
2 checks 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.

Add environment variable validation on startup with envalid

2 participants