dotenv-org / dotenv-vault-core

DEPRECATED: Use motdotla/dotenv which added support for .env.vault May 30, 2023.
https://github.com/motdotla/dotenv
9 stars 4 forks source link

Docs incorrect for custom path? #14

Closed aawalton closed 1 year ago

aawalton commented 1 year ago

The README has an example for a custom path for monorepo.

require('dotenv-vault-core').config('apps/some-app/.env.vault')

However, in testing this didn't work. From reading the code and testing, it looks like the correct syntax is require('dotenv-vault-core').config({ path: 'apps/some-app/.env.vault' })

if (options && options.path && options.path.length > 0) {
    dotenvPath = options.path
  }
motdotla commented 1 year ago

thank you. closing now. updated and fixed in dotenv.