NextJS13 WebSocket Error and Quick Fix

2 replies
Last updated: Feb 22, 2023
I've been using NextJS13 for some time and this websocket error only just started to show up. All info I've found online says to modify NGINX config but I'm not even sure I'm using NGINX. Anyone found a quick fix for this?
Presumably you’re persisting your console logs, and you’ve stopped your dev server which will output these logs as NextJS uses websockets to detect hot reloads.
restarted node (which I did before) solved it this time..no more errors 🤔

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?