Skip to content

Commit

Permalink
Workaround for dotenv-webpack #70
Browse files Browse the repository at this point in the history
  • Loading branch information
cjolowicz committed Jan 2, 2019
1 parent 3965ffe commit cb70fad
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit cb70fad

Please sign in to comment.