Environment
Read the environment orchard runs in.
env
impure
env(name) → stringRead an environment variable by name.
Returns an empty string when the variable is unset, matching shell convention. Values read via env() may appear in run records — use for connection strings and config, not raw secrets.
| Parameter | Type | Description |
|---|---|---|
name | string | Environment variable name. |
env("DATABASE_URL")→ "postgres://localhost/mydb"
env("UNSET_VAR")→ ""