Open camstuart opened 6 years ago
Hi,
I'm using the react version of prime ui.
My understanding of env vars with create react app is to use the prefix: REACT_APP_
REACT_APP_
But if I modify my start script to include REACT_APP_MY_VAR=foo and then console log process.env it's undefined
REACT_APP_MY_VAR=foo
process.env
undefined
My goal is you use env vars to set the address of the backend API for dev and production. What's the correct approach here?
Hi,
I'm using the react version of prime ui.
My understanding of env vars with create react app is to use the prefix:
REACT_APP_
But if I modify my start script to include
REACT_APP_MY_VAR=foo
and then console logprocess.env
it'sundefined
My goal is you use env vars to set the address of the backend API for dev and production. What's the correct approach here?