DEV Community

Discussion on: .env file not read

Collapse
 
yobretyo profile image
Bret

How do I echo them? I have the env “ignored” because I’m using GitHub. I have the package installed. I’ve tried “REACT_APP” I front of all the variables as a test, still didn’t work

Collapse
 
rafarochas91 profile image
Rafael Rocha

hmm, thats indeed weird. Is your repo public by any chance?

Thread Thread
 
yobretyo profile image
Bret

No, it’s private. But I was told you still create variables

Thread Thread
 
rafarochas91 profile image
Rafael Rocha

Yes of course. Just meant it because if it was public I could check what was wrong. Echoing is just as easy as having a dummy script with echo $YOUR_ENV_VAR

Thread Thread
 
yobretyo profile image
Bret

I have a repo, but that project is private because I have API keys