Skip to content

Commit

Permalink
chore: setupHMRProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
magne4000 committed Dec 11, 2024
1 parent 1b07c47 commit faa5c9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vike-node/src/plugin/plugins/devServerPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export function devServerPlugin(): Plugin {
HMRServer.emit('upgrade', clientReq, clientSocket, wsHead)
}
})
return true
// true if we need to send an empty Response waiting for the upgrade
return req.url === VITE_HMR_PATH
}
}

Expand Down

0 comments on commit faa5c9a

Please sign in to comment.