Skip to content

Commit 4e6ffa5

Browse files
gatsbybotwardpeet
andauthored
fix(gatsby): use host param for express again (#36186) (#36190)
Co-authored-by: Ward Peeters <[email protected]>
1 parent 1f05fed commit 4e6ffa5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/gatsby/src/utils/start-server.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -800,12 +800,8 @@ export async function startServer(
800800
* Set up the HTTP server and socket.io.
801801
**/
802802
const server = new http.Server(app)
803-
804803
const socket = websocketManager.init({ server })
805-
806-
// hardcoded `localhost`, because host should match `target` we set
807-
// in http proxy in `develop-proxy`
808-
const listener = server.listen(program.port, `localhost`)
804+
const listener = server.listen(program.port, program.host)
809805

810806
if (!process.env.GATSBY_EXPERIMENTAL_DEV_SSR) {
811807
const chokidar = require(`chokidar`)

0 commit comments

Comments
 (0)