You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, some configuration values like debug mode are hardcoded. This issue proposes implementing environment variable configuration to make the application more configurable.
Proposed Changes
Create AppConfiguration struct to manage application-wide configuration
Read configuration from environment variables with sensible defaults
Make configuration available throughout the application via Vapor's storage
Overview
Currently, some configuration values like debug mode are hardcoded. This issue proposes implementing environment variable configuration to make the application more configurable.
Proposed Changes
AppConfiguration
struct to manage application-wide configurationEnvironment Variables
APP_DEBUG
: Enable debug mode (true/false)APP_ENV
: Application environment (development/staging/production)STATIC_PATH
: Path for static assetsDECIMAL_COUNT
: Number of decimal places for numerical valuesRelated Discussion
This implementation was discussed in PR #48 (//pull/48)
Implementation Details
The implementation will follow the structure outlined in the PR discussion, focusing on type-safety and proper error handling.
/cc @Dracks
The text was updated successfully, but these errors were encountered: