Skip to content

Commit

Permalink
Move line
Browse files Browse the repository at this point in the history
  • Loading branch information
motdotla committed Nov 19, 2023
1 parent 2a88fff commit 687c4df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,13 @@ function configDotenv (options) {

// Populates process.env from .env file
function config (options) {
const vaultPath = _vaultPath(options)

// fallback to original dotenv if DOTENV_KEY is not set
if (_dotenvKey(options).length === 0) {
return DotenvModule.configDotenv(options)
}

const vaultPath = _vaultPath(options)

// dotenvKey exists but .env.vault file does not exist
if (!vaultPath) {
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`)
Expand Down

0 comments on commit 687c4df

Please sign in to comment.