Commit 443abba9 authored by Arunoda Susiripala's avatar Arunoda Susiripala Committed by Tim Neutkens

Fix HMR http request timeout issue under node 8. (#2166)

The fix is to add a heartbeat less than 5 secs.
parent af799368
...@@ -156,7 +156,8 @@ export default class HotReloader { ...@@ -156,7 +156,8 @@ export default class HotReloader {
this.webpackHotMiddleware = webpackHotMiddleware(compiler, { this.webpackHotMiddleware = webpackHotMiddleware(compiler, {
path: '/_next/webpack-hmr', path: '/_next/webpack-hmr',
log: false log: false,
heartbeat: 2500
}) })
this.onDemandEntries = onDemandEntryHandler(this.webpackDevMiddleware, compiler, { this.onDemandEntries = onDemandEntryHandler(this.webpackDevMiddleware, compiler, {
dir: this.dir, dir: this.dir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment