Skip to content

basalt / env/src / EnvPrefix

Interface: EnvPrefix ​

Defined in: env/src/index.ts:35

Properties ​

fallback? ​

> optional fallback?: boolean

Defined in: env/src/index.ts:44

Also accept the bare <NAME> when <PREFIX>_<NAME> is unset. Default: true, so a deployment that already exports the generic names keeps booting. Set false to require the prefixed names and make a stray DATABASE_URL in the shell impossible to pick up by accident.


value ​

> value: string

Defined in: env/src/index.ts:37

The prefix itself, e.g. 'MY_SAAS' — uppercase letters, digits and underscores.

Released under the MIT License.