Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
8+7 =