From 14827b3b5a501e55a37985335c585702d84cd751 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Thu, 27 Jun 2019 22:46:23 -0700 Subject: [PATCH] Debug config --- get-config.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/get-config.js b/get-config.js index 07c9d4db..c99ff894 100644 --- a/get-config.js +++ b/get-config.js @@ -2,9 +2,11 @@ module.exports = function getConfig() { const configPath = process.cwd() + '/src/config'; try { - return require(configPath)(process.env.NODE_ENV || 'development'); + const config = require(configPath)(process.env.NODE_ENV || 'development'); + console.log(config); + return config; } catch (e) { console.log(`[WARNING] Didn't find config at ${configPath}\n`); return {}; } -} \ No newline at end of file +}