Use custom environment variables in a React app

React JS

In react we can use custom variables provided in the .env files, however for custom variables, the name of the variable must start with REACT_APP_, e.g.

REACT_APP_API_URL=/customApiUrl

Post a Comment

Previous Post Next Post