March 14, 2026
All services now validate required environment variables at startup, catching configuration errors before they cause runtime failures.
All services now validate required environment variables at startup, catching configuration errors before they cause runtime failures.
Improved
- Instant startup diagnostics for missing configuration. Strutter now validates every required environment variable the moment a service starts. If anything is missing or invalid, the service stops immediately and prints a single error listing all the problems at once, not just the first one. This replaces the previous behavior where a missing variable would only surface as a cryptic error minutes later when the affected code path ran for the first time.
Under the Hood
- Centralized schema-based validation runs before any request handling, covering both the main application and the background worker.
- Server-only variables are skipped during builds since secrets are not available at build time. Production-only variables (encryption keys, worker credentials) are enforced only when running in production.
- Validation covers both public client configuration and private server configuration through separate schemas, ensuring each surface area is checked independently.