SSR errors in Next.js

Fucking hell. I've just wasted a couple of hours trying to debug a React component in Next.js. The error was quite stupid — using navigator without safeguarding it for the SSR. But until I decided to finally look into the terminal I had no idea what was causing the server to throw 500.

I think they could at least just copy-paste the server-side error to the browser response. Fuck.