Env Name | Branch name | Env file name in ReactJS |
---|---|---|
Local | .env | |
Develop | develop | .env.development |
QA | qa | .env.qa |
Staging | staging | .env.staging |
Production | master | .env.production |
Variables that are present in all web apps are -
REACT_APP_ENV_NAME
: The name of the environment name. It should match the “Env Name” column in the above tableREACT_APP_ENV_VERSION
: The version number of the web app. Described here in detail.REACT_APP_CORE_API_URL
: The API URL of the backendREACT_APP_HOSTING_ROOT
: The root URL on which the web client is hosted.REACT_APP_SENTRY_DSN
: The DSN of Sentry. More about in Art of Logging