From 62a98bf7a546b2b6ff00da3a5d23d9819b82a206 Mon Sep 17 00:00:00 2001 From: Vadym Date: Sat, 5 Feb 2022 20:09:47 +0200 Subject: [PATCH] Fixed preload error --- config.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/config.js b/config.js index 115dc5d..bd49df1 100644 --- a/config.js +++ b/config.js @@ -1,12 +1,7 @@ (function () { - const dotenvExpand = require('./lib/main') - const env = require('dotenv').config( - Object.assign( - {}, - require('dotenv/lib/env-options'), - require('dotenv/lib/cli-options')(process.argv) - ) - ) + const { expand: dotenvExpand } = require('./lib/main') + + const env = require('dotenv').config() return dotenvExpand(env) })()