Open
Description
- Start with a .env file and .env.me
npx dotenv-vault local build
- .env.vault created
npx dotenv-vault push
The result is:
x Aborted.
Code: EMPTY_DOTENV_VAULT
Suggestion: Run, npx dotenv-vault@latest new
› Error: Empty .env.vault (DOTENV_VAULT).
It seems like there are two types of .env.vault, one for local build and the other for distribution, they have to be compatible or there's something I am missing.
The use case is quite common, individual developers are working on their own branches, with a branch specific .env.vault that is getting committed to the repo (using pre-commit hook with local build
command, only when the PR is approved and is merged to main branch the .env.vault is distributed by being pushed (using push
command.
Metadata
Metadata
Assignees
Labels
No labels