Back to Directus

Flows

content/configuration/flows.md

latest1.1 KB
Original Source

:partial{content="config-env-vars"}

VariableDescriptionDefault Value
FLOWS_ENV_ALLOW_LISTA comma-separated list of environment variables.false
FLOWS_RUN_SCRIPT_MAX_MEMORYThe maximum amount of memory the 'Run Script' operation can allocate in megabytes. Minimum 8.32
FLOWS_RUN_SCRIPT_TIMEOUTThe maximum duration the 'Run Script' operation can run for in milliseconds.10000

Using Environment Variables

Once enabled via the FLOWS_ENV_ALLOW_LIST variable, environment variables can be accessed through the $env object within the passed data or through process.env. For example:

js
const publicUrl = data.$env.PUBLIC_URL;