Skip to content

Commit

Permalink
[patch] check WEBPACK_DEV_HOST (#868)
Browse files Browse the repository at this point in the history
* WEBPACK_DEV_HOST vs WEBPACK_HOST and cor

* check `WEBPACK_DEV_HOST` first
  • Loading branch information
didi0613 authored and jchip committed Jul 19, 2018
1 parent f045dfb commit c62b12c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electrode-react-webapp/lib/react-webapp.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const setupOptions = options => {
serverSideRendering: true,
htmlFile: Path.join(__dirname, "index.html"),
devServer: {
host: process.env.WEBPACK_HOST || "127.0.0.1",
host: process.env.WEBPACK_DEV_HOST || process.env.WEBPACK_HOST || "127.0.0.1",
port: process.env.WEBPACK_DEV_PORT || "2992",
https: Boolean(process.env.WEBPACK_DEV_HTTPS)
},
Expand Down

0 comments on commit c62b12c

Please sign in to comment.