-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requesthacktoberfest
Description
Description:
The application starts successfully even when critical environment variables are missing, leading to runtime errors.
Current Issues:
- No validation of required environment variables
- Application starts with missing config
- Runtime errors due to undefined variables
- No clear error messages for config issues
- Default values not properly set
What needs to be fixed:
- Add startup validation for required env vars
- Provide clear error messages for missing config
- Set appropriate default values where possible
- Create environment variable documentation
- Add configuration validation middleware
Acceptance Criteria:
- Application fails fast on missing required env vars
- Clear error messages indicate which vars are missing
- Default values are documented and applied
- Configuration validation runs on startup
- Environment-specific configs are validated
Files to modify:
index.js- Create
src/config/validation.js
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requesthacktoberfest