Skip to content

Environment Variables

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

VariableDescriptionTypeRequired
ALLOW_DB_CREATIONWhether to allow the creation of new databases. Useful for ensuring existing production environments don't inadvertently create new databases.string
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
DOMAIN_REDIRECTSComma-separated list of domains to redirect to the root domain, e.g. 'old-subdomain1.saf.com,old-subdomain2.saf.com'.string
MOCK_INTEGRATIONSWhether to mock 3rd party integrations. Set to 'true' to mock. And integration packages should respect this setting.string
NODE_ENVThe environment of the deployment. Generally should avoid using this, consider its use deprecated, prefer instead more specific environment variables.stringYes
PROTOCOLThe protocol of the deployment, e.g. 'https'stringYes
SERVICE_SUBDOMAINSComma-separated list of service subdomains, e.g. 'revenue,geo,identity,core'.stringYes
TZThe timezone of the deployment, e.g. 'America/New_York'. Must be UTC.stringYes