Skip to content

Commit

Permalink
Fix HMR http request timeout issue under node 8. (vercel#2166)
Browse files Browse the repository at this point in the history
The fix is to add a heartbeat less than 5 secs.
  • Loading branch information
arunoda authored and xuezhma committed Jun 22, 2017
1 parent df7e854 commit 5b34851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/hot-reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5b34851

Please sign in to comment.