Added path argument
--path
,-p
(default: null)
Specify a specific env file to load e.g. react-env --path .env.testing
would load .env.testing, .env.local, .env
in that order with the latter taking priority. a Combination of --env APP_ENV --path testing
where APP_ENV=staging
loads .env.testing, .env.staging, .env.local, .env
as the priority order.
Configurable prefix arg
--prefix
(default: REACT_APP)
Change the default prefix for white-listed env variables. For example react-env --prefix CUSTOM_PREFIX
will white-list variables like: CUSTOM_PREFIX_PUBLIC_KEY=my-public-key
Debug flag
--debug
(default: false)
Enable debugging for react-env. This will log loaded browser environment variables into your console when running react-env --debug