Hi all
Apologies if you've seen this post in another Discord server - I honestly thought I was posting it here, lol!
As per title, I’m new to Next and I’m wanting to understand whether there’s a way to troubleshoot issues on a built site.
Context: During dev I have no issues, and I can run a build script without issues as well. However when I run my build (npm run start) I get a 500 on the initial document load, even though the page still loads without any visible errors. So essentially I get a 200 response right after a 500. The error itself I can share later, but it’s essentially a call() error. It seems that it’s trying to call a react component that doesn’t exist.
My question is really how I go about troubleshooting this principally rather than the error itself? Since I can’t see the exact origin it makes it difficult. Is there a build config I can set to make my code build with a source map for example?