value + type
{ NODE_ENV: "development" | "production"; PORT: number; HOST: string; DATABASE_URL: string; SECRET_FUZ_COOKIE_KEYS: string; FUZ_ALLOWED_ORIGINS: string; FUZ_ALLOW_ORIGIN_WILDCARDS?: "true" | ... 1 more ... | undefined; FUZ_BOOTSTRAP_TOKEN_PATH?: string | undefined; FUZ_DB_CHECKOUT_TIMEOUT_MS?: number | undefined; FU... import {BaseServerEnv} from '@fuzdev/fuz_app/server/env.js'; Base schema for server environment variables, a strict object.
Declares only what the spine reads — server config, database and its pool
checkout bounds, cookie keys, allowed origins and the wildcard opt-in, and
the bootstrap token path — matching the Rust spine's BaseServerEnv. The
numeric vars read as the Rust twin reads them (env_integer: trimmed,
then decimal digits after at most one +, so 5e3 and a blank value are
refused on both, as is one out of range). Anything else (fact storage, X-Accel delivery, public
URLs) is the app's own var: extend by spreading def into a new object,
object({...BaseServerEnv.def, MY_VAR: ...}).
Each field's description and sensitivity are meta, read by
env_schema_to_surface.
NODE_ENV
type "development" | "production"
PORT
type number
HOST
type string
DATABASE_URL
type string
SECRET_FUZ_COOKIE_KEYS
type string
FUZ_ALLOWED_ORIGINS
type string
FUZ_ALLOW_ORIGIN_WILDCARDS?
type "true" | "false"
FUZ_BOOTSTRAP_TOKEN_PATH?
type string
FUZ_DB_CHECKOUT_TIMEOUT_MS?
type number
FUZ_DB_AUDIT_CHECKOUT_TIMEOUT_MS?
type number