Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.42 KB

File metadata and controls

42 lines (26 loc) · 1.42 KB

Federated Gateway: Configuration

All Reaction Commerce services follow the twelve-factor app methodology, including storing the configuration with the environment. We keep our configuration in the service's root directory in a .env file.

Never commit your .env file to git

Table of Contents

TODO: add variables

Variables

The .env file is where we keep all the variables about the environment, and any custom variables your service might need. Run the bin/setup command from the project's root directory to create an .env file with default variables for local development.

In a deployed environment, you will need to set correct values for every variable listed here or the service will not start. They are all required.

Back to Top

REACTION_LOG_LEVEL

Log level for the Reaction Logger.

Back to Top

Validation

Federated Gateway uses envalid to validate environment variables. Validation happens in /src/config.js and provides a validated config object.

Back to Top

Further Reading

Back to Top