Skip to content

genetschneider/nextjs-websocket-fast-refresh-bug

Repository files navigation

Next Websocket fast refresh doesn't work with assetPrefix

This example repository shows how the Websocket fast refresh doesn't work if assetPrefix is defined.

Running the example

  • npm i
  • npm run dev
  • open http://localhost:3000

Notice an error in console

Uncaught DOMException: Failed to construct 'WebSocket': The URL 'ws://localhost:3000custom-asset-prefix/_next/webpack-hmr' is invalid.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published