Skip to content

Files

31 lines (21 loc) · 1.12 KB

environment-variables.md

File metadata and controls

31 lines (21 loc) · 1.12 KB

Environment Variables

The application is driven by some environment variables used at build and runtime.

Always Available Environment Variables

Name Description Default
REACT_APP_NAME name extracted from package.json` -
REACT_APP_VERSION version extracted from package.json` -
REACT_APP_COMMIT commit extracted from git history -

Used Locally / Static Files CDN

Name Description Default Used Locally Used In A Deployment
REACT_APP_API_BASE_URL base url / path for api /api V ?
REACT_APP_MOCK_API enables mock api locally true V ?
DEV_PORT webpack server dev http port 3001 V

Docker Only Environment Variables

Name Description
API_BASE_URL base path for api (could be a URL)
MOCK_API enable mocking api

Note About Remote URLs Variables

This project is using the REMOTE_1_URL to dinamically load a remote. You can add as many remotes as you want or you can decide to use static know localtions without relying on environment variables for the purpose.