From cb70fad658660d93710b03b084e47b85f9d467d2 Mon Sep 17 00:00:00 2001 From: Claudio Jolowicz Date: Tue, 1 Jan 2019 23:17:36 +0100 Subject: [PATCH] Workaround for dotenv-webpack #70 https://github.com/mrsteele/dotenv-webpack/issues/70 --- src/constants.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/constants.js b/src/constants.js index d45f130a..9369238c 100644 --- a/src/constants.js +++ b/src/constants.js @@ -9,9 +9,7 @@ export const WEBPACK_DEV_SERVER_URL = `http://localhost:${WEBPACK_DEV_SERVER_POR export const WEBPACK_PUBLIC_PATH = PRODUCTION ? STATIC_PATH : WEBPACK_DEV_SERVER_URL; export const WEBPACK_LOCATION = `${WEBPACK_PUBLIC_PATH}/${WEBPACK_FILE}`; -export const { - API_URL, - API_USER, - API_PASSWORD, - NODE_ENV = 'development', -} = process.env; +export const { API_URL } = process.env; +export const { API_USER } = process.env; +export const { API_PASSWORD } = process.env; +export const { NODE_ENV = 'development' } = process.env;