Skip to content

Environment Variables

This package uses environment variables. The schema for these variables is as follows:

VariableDescriptionTypeRequired
CLIENT_SUBDOMAINSComma-separated list of client subdomains, e.g. 'www,app,auth,'. Include an empty string (such as in the example) to indicate there's a client for the root domain.stringYes
DEPLOYMENT_NAMEThe name of the deployment, e.g. 'production', 'staging', 'development'. This may be used in strings such as database file names and logging metadata; each deployment should have a unique name.stringYes
DOMAINThe root domain of the deployment, e.g. 'saf.com'.stringYes
PROTOCOLThe protocol of the deployment, e.g. 'https'stringYes
TZThe timezone of the deployment, e.g. 'America/New_York'. Must be UTC.stringYes
NODE_ENVThe environment of the deployment. Generally should avoid using this, consider its use deprecated, prefer instead more specific environment variables.stringYes
MOCK_INTEGRATIONSWhether to mock 3rd party integrations. Set to 'true' to mock. And integration packages should respect this setting.string
ALLOW_DB_CREATIONWhether to allow the creation of new databases. Useful for ensuring existing production environments don't inadvertently create new databases.string