Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment Variables #282

Open
camstuart opened this issue Jan 28, 2018 · 0 comments
Open

Environment Variables #282

camstuart opened this issue Jan 28, 2018 · 0 comments

Comments

@camstuart
Copy link

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 log process.env it's 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant