Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react .env not working process.env

The variable in the .env file needs to start with REACT_APP_ for it to be picked up

REACT_APP_API_URL=http://localhost:3000
 
PREVIOUS NEXT
Tagged: #react #working
ADD COMMENT
Topic
Name
1+6 =