From 687c4df62a4575688bdee9906e0e29fae76cdad2 Mon Sep 17 00:00:00 2001 From: Scott Motte Date: Sat, 18 Nov 2023 20:12:24 -0800 Subject: [PATCH] Move line --- lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 39d06714..bb2aac44 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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?`)