Skip to content

Commit cb70fad

Browse files
committed
Workaround for dotenv-webpack #70
mrsteele/dotenv-webpack#70
1 parent 3965ffe commit cb70fad

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/constants.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export const WEBPACK_DEV_SERVER_URL = `http://localhost:${WEBPACK_DEV_SERVER_POR
99
export const WEBPACK_PUBLIC_PATH = PRODUCTION ? STATIC_PATH : WEBPACK_DEV_SERVER_URL;
1010
export const WEBPACK_LOCATION = `${WEBPACK_PUBLIC_PATH}/${WEBPACK_FILE}`;
1111

12-
export const {
13-
API_URL,
14-
API_USER,
15-
API_PASSWORD,
16-
NODE_ENV = 'development',
17-
} = process.env;
12+
export const { API_URL } = process.env;
13+
export const { API_USER } = process.env;
14+
export const { API_PASSWORD } = process.env;
15+
export const { NODE_ENV = 'development' } = process.env;

0 commit comments

Comments
 (0)