Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

.env.local not working react

## 2-STEPS
# 1.
# install 'dotenv' npm with
npm install dotenv --save

# 2.
# Then make sure you kill the 
# development server and start 
# it afresh after you edit a 
# '.env' file. Use 'npm start' 
# to retart it
npm start

# Worked for me!
 
PREVIOUS NEXT
Tagged: #working #react
ADD COMMENT
Topic
Name
3+6 =