Expand description
Explicit .env cascade for Sova applications.
Call load at the top of main before reading configuration.
Real process environment variables always win over file values.
File order (later overrides earlier):
.env.{dev|prod|test}(short alias of the active mode).env.{mode}when mode is the long name (development/production).env.local(skipped intest).env(final overlay)
Enums§
Functions§
- load
- Load the standard cascade into the process environment (no override of existing vars).
- load_
from - Load cascade relative to
root(typically"."). - require
- Fail fast when a variable is unset or empty.
- warn_
missing_ example - Log a warning for each key listed in
examplethat is missing from the environment.