If a required config value (API key, DB URL) is missing at startup, the service currently starts anyway and fails later on first use, producing a confusing runtime error instead of a clear startup failure.
Fix: Validate required environment variables at startup and fail fast with a clear error message.
If a required config value (API key, DB URL) is missing at startup, the service currently starts anyway and fails later on first use, producing a confusing runtime error instead of a clear startup failure.
Fix: Validate required environment variables at startup and fail fast with a clear error message.