Unverified Commit 3c5d5b55 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add note about HMR WebSocket with express to upgrading (#30905)

x-ref: https://github.com/vercel/next.js/issues/30491#issuecomment-957865735

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
parent 49347f01
......@@ -71,6 +71,14 @@ location /_next/webpack-hmr {
}
```
For custom servers, such as `express`, you may need to use `app.all` to ensure the request is passed correctly, for example:
```js
app.all('/_next/webpack-hmr', (req, res) => {
nextjsRequestHandler(req, res)
})
```
### Webpack 4 support has been removed
If you are already using webpack 5 you can skip this section.
......
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