env section of
modelence.config.json and set per environment.
Provided variables
Names starting with
MODELENCE_, and PORT, are reserved and cannot be declared by the app.
Declaring variables
Each variable the app expects is declared by name inenv:
modelence.config.json
text(the default) is a plain setting. Avaluein the file is the committed default, and a value set for an environment overrides it.secretis for keys, tokens and passwords. It never carries avaluein the file, and its value is write-only once set.resourcetakes its value from a managed database or cache declared in the same file. It can’t be set by hand. See Databases.
"required": false.
Build and runtime
A variable reaches the running app by default. Anything the build needs as well, such as aVITE_*
or NEXT_PUBLIC_* value a bundler inlines into the frontend, also needs "scopes": ["build", "runtime"]. A value scoped to ["build"] alone, such as a private registry token, never reaches the
running app. A bundler puts inlined values into code that every visitor downloads, so a secret must
never be inlined.
Resource variables reach the running app only.