Horje
.env.local not working react Code Example
.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!
.env not working on react
//install dotenv via npm
//npm install dotenv --save

//At the top of your file add
require('dotenv').config();
.env not working on react


REACT_APP_API_URL=http://localhost:3000/api
REACT_APP_CALLBACK_URL=http://localhost:3005/callback


Source: devarama.com




Shell

Related
Cannot find module 'react-input-mask' or its corresponding type declarations. Code Example Cannot find module 'react-input-mask' or its corresponding type declarations. Code Example
cdo mean of multiple files Code Example cdo mean of multiple files Code Example
serve : File C:\Users\MY PC\AppData\Roaming\npm\serve.ps1 cannot be loaded because running scripts is disabled on this system Code Example serve : File C:\Users\MY PC\AppData\Roaming\npm\serve.ps1 cannot be loaded because running scripts is disabled on this system Code Example
wget as file name Code Example wget as file name Code Example
vmplayer kernel headers not found Code Example vmplayer kernel headers not found Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11