kerimdzhanov / dotenv-flow

Loads environment variables from .env.[development|test|production][.local] files for Node.js® projects.
MIT License
862 stars 35 forks source link

config({purge_dotenv=true}) fails to load any environment if .env not found #50

Closed cnorris4423 closed 1 year ago

cnorris4423 commented 3 years ago

This simple program will not load any config when a .env file is not found.

require('dotenv-flow').config({
  purge_dotenv: true
});
kerimdzhanov commented 1 year ago

Hi @cnorris4423.

Thanks for reporting!