See Sanity in action 👀 Join us for a live product demo + Q&A →

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?
Feb 22, 2023, 10:37 PM
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.
Feb 22, 2023, 10:43 PM
restarted node (which I did before) solved it this more errors 🤔
Feb 22, 2023, 10:54 PM – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.