You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But none of these two approach worked.
The commands I have tried without success: $ DOTENV_KEY=*** yarn start $ DOTENV_KEY=*** NODE_ENV=development yarn start
Note that DOTENV_KEY and NODE_ENV correctly appear inside process.env while running, but the env file is not loaded.
In the meantime, I'll simply decrypt the vault with the decrypt command, but I thought that the magic DOTENV_KEY was cool to use.
Also I'm not sure how dotenv.config() is supposed to check for the DOTENV_KEY when it's related to the dotenv-vault feature. Shouldn't it be replaced with dotenvVault.config() while adding dotenv-vault as a dependency to the project?
I reopened this issue here, since I'm not sure it will ever be read on the initial repository where I posted it.
The text was updated successfully, but these errors were encountered:
Hey, I'm not sure I understand the current example of Node.js DOTENV_KEY setup.
The current README.md:
When I remove the .env file to try loading it with the vault and the
DOTENV_KEY
the project fails to load the vault.I was using:
I thought maybe I should only use the following:
But none of these two approach worked.
The commands I have tried without success:
$ DOTENV_KEY=*** yarn start
$ DOTENV_KEY=*** NODE_ENV=development yarn start
Note that
DOTENV_KEY
andNODE_ENV
correctly appear insideprocess.env
while running, but the env file is not loaded.In the meantime, I'll simply decrypt the vault with the
decrypt
command, but I thought that the magicDOTENV_KEY
was cool to use.Also I'm not sure how
dotenv.config()
is supposed to check for theDOTENV_KEY
when it's related to thedotenv-vault
feature. Shouldn't it be replaced withdotenvVault.config()
while addingdotenv-vault
as a dependency to the project?I reopened this issue here, since I'm not sure it will ever be read on the initial repository where I posted it.
The text was updated successfully, but these errors were encountered: