1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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

The fix is to add a heartbeat less than 5 secs.
This commit is contained in:
Arunoda Susiripala 2017-06-05 14:32:13 +05:30 committed by Tim Neutkens
parent af7993683b
commit 443abba94a

View file

@ -156,7 +156,8 @@ export default class HotReloader {
this.webpackHotMiddleware = webpackHotMiddleware(compiler, {
path: '/_next/webpack-hmr',
log: false
log: false,
heartbeat: 2500
})
this.onDemandEntries = onDemandEntryHandler(this.webpackDevMiddleware, compiler, {
dir: this.dir,