1.0 KiB
1.0 KiB
| sidebar_position | sidebar_label | title | summary |
|---|---|---|---|
| 3 | Environment Variables | Environment Variables | Documentation of the environment variables used in OHIF during build time to configure application behavior, including application settings, internationalization options, and methods for setting these variables. |
Environment Variables
There are a number of environment variables we use at build time to influence the output application's behavior.
# Application
NODE_ENV=< production | development >
DEBUG=< true | false >
APP_CONFIG=< relative path to application configuration file >
PUBLIC_URL=< relative path to application root - default / >
ROUTER_BASENAME=< relative path to application root - default PUBLIC_URL >
VERSION_NUMBER=<Set by CircleCI>
BUILD_NUM=<Set by CircleCI>
# i18n
USE_LOCIZE=<false>
LOCIZE_PROJECTID=<ProjectID to pull translations for>
LOCIZE_API_KEY=<To enable Locize live editing of translations>
Setting Environment Variables
npx cross-env.envfiles- env variables on build machine, or for terminal session