1.1.0 • Published 5 years ago

react-runtime v1.1.0

Weekly downloads
26
License
ISC
Repository
github
Last release
5 years ago

react-runtime

Include REACT_APP_ environment variables at runtime in your react app.

Get started

yarn add --dev react-runtime

# Generate HTML for including in index.html
./node_modules/.bin/react-runtime html

# Add the following directly before launching your react app's server
react-runtime generate > build/react-runtime.env.js

# Replace all references to process.env in your js source with:
(e=process.env,e.NODE_ENV === 'production' ? window.reactRuntimeEnv : e)
1.1.0

5 years ago

1.0.0

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.1

5 years ago