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:
parent
af7993683b
commit
443abba94a
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue