Skip to content

Commit

Permalink
Switch default host back to localhost as breaks HMR on unix fixes #2989
Browse files Browse the repository at this point in the history
… (#3080)
  • Loading branch information
KyleAMathews committed Nov 30, 2017
1 parent 6828aea commit 1b72aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-cli/src/create-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const handlerP = fn => (...args) => {
}

function buildLocalCommands(cli, isLocalSite) {
const defaultHost = process.platform === `win32` ? `localhost` : `0.0.0.0`
const defaultHost = `localhost`
const directory = path.resolve(`.`)

let siteInfo = { directory, browserslist: DEFAULT_BROWSERS }
Expand Down

0 comments on commit 1b72aec

Please sign in to comment.