robbie-cahill / tunnelmole-client

Tunnelmole - Connect to local servers from anywhere
MIT License
1.29k stars 80 forks source link

Next.js (webpack) hot module reloading does not work #11

Open curiousercreative opened 1 year ago

curiousercreative commented 1 year ago

software versions

$ cat /etc/os-release
PRETTY_NAME="Pop!_OS 22.04 LTS"
$ node --version
v18.15.0
$ yarn tunnelmole -V
2.1.10
$ yarn next --version
Next.js v12.3.4

repro

  1. yarn add tunnelmole
  2. yarn next dev & yarn tunnelmole 3000 ER/AR: tunnel seems to work, the Next.js app loads in browser
  3. Make some arbitrary templating change (copy, remove a block of content, etc) ER: the tunneled app should update without a reload AR: tunneled app does not update until page is reloaded AR: Browser console error:

    Socket connection to 'wss://qmwe6k-ip-xx-xx-xx-xxx.tunnelmole.com/_next/webpack-hmr' failed: Error during WebSocket handshake: Unexpected response code: 404

thgh commented 1 year ago

I looked into WebSocket support in https://github.com/robbie-cahill/tunnelmole-service/pull/6

BanDroid commented 5 months ago

nextjs 14 still not working with the websocket issue, is this being worked on?