Where .env files are read from unless dotenvDir says otherwise: the
directory of the nearest package.json walking up from cwd, else
cwd itself. Reading them from the working directory only, as this
once did, found none when an application was started from anywhere but
its own root (a subdirectory, a test runner, a process manager).
Where
.envfiles are read from unlessdotenvDirsays otherwise: the directory of the nearestpackage.jsonwalking up fromcwd, elsecwditself. Reading them from the working directory only, as this once did, found none when an application was started from anywhere but its own root (a subdirectory, a test runner, a process manager).