Skip to content

chore(backend): add environment validation with Joi #12

@Xuccessor

Description

@Xuccessor

Summary

The app starts silently even when required env vars are missing. Add startup validation.

Acceptance Criteria

  • Install @nestjs/config and joi
  • ConfigModule.forRoot with a Joi schema validating: DATABASE_URL, JWT_SECRET, STELLAR_NETWORK, PORT (default 4000)
  • App fails fast with a clear error message if any required var is missing
  • .env.example updated with all required keys and descriptions

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions