Skip to content

Commit

Permalink
fix(gatsby): use host param for express again (#36186)
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Jul 20, 2022
1 parent 8ca9a4a commit f35fda7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/gatsby/src/utils/start-server.ts
Expand Up @@ -800,12 +800,8 @@ export async function startServer(
* Set up the HTTP server and socket.io.
**/
const server = new http.Server(app)

const socket = websocketManager.init({ server })

// hardcoded `localhost`, because host should match `target` we set
// in http proxy in `develop-proxy`
const listener = server.listen(program.port, `localhost`)
const listener = server.listen(program.port, program.host)

if (!process.env.GATSBY_EXPERIMENTAL_DEV_SSR) {
const chokidar = require(`chokidar`)
Expand Down

0 comments on commit f35fda7

Please sign in to comment.