.env file isn't working for me
AyushmanBhatt opened this issue · 4 comments
AyushmanBhatt commented
The dotenv (.env) file isn't working for me, it always shows the string is undefined.
starlove54 commented
make sure to not add and commit the files to git repository before adding .env and node_modules to .gitignore. Incase you do follow the process to remove them from repository.
LAKSHAYNE commented
Restart the server every time you update the env . Hence should fix it
yashwant1711 commented
dotenv.config({path : "./config.env"})
try this it's works for me
Asifp6021 commented
first check your pacage.json file. has dotenve file been installed or not .