1.0.2 • Published 6 years ago

@ampapps/pdrc-env v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

PDRC-ENV

Walks up and loads first .env it finds.

I did this so that I didn't have separate, redundant .env files in every project. Like the eslint and prettier config files, I wanted to keep one env in the root PDRC directory for local development.

All you have to do to get this behavior is to include:

require('@ampapps/pdrc-env');

This should only do anything locally. On heroku config-vars are provided by the app, but even if they do actually create a config file, it shouldn't matter, this will just overwrite the process.env object.