Configuration
PrismConfig loads settings from environment variables and .env files with type-safe accessors. No YAML, no TOML — just key-value pairs with built-in support for environment-specific overrides.
Loading Configuration
Load from .env
From Environment Only
.env File Format
.env
.env.production
Environment variables take priority over
.env file values. This lets you override settings per-deployment without changing files. The .env.{environment} file loads after .env, letting you layer environment-specific values.Type-Safe Accessors
Reading Values
Built-In Properties
Convenience Properties
Practical Example
Configure Server from .env
Error Handling
Handle Missing Config