DEV Community

Discussion on: React — Environment specific builds using .env with CRA and env-cmd

ping2anilsharma profile image
Anil Sharma

How do we access environment variables in application. I know we can access using process.env.ENV_VAR_NAME
bit in your case you have given variables names using slash so when putting
process.env.REACT_APP_TITLE does not work

rishikeshvedpathak profile image
Rishikesh Vedpathak Author

It was a markdown typo mistake. Thanks for pointing it out.