Next.js Discord

Discord Forum

Payload v2 + Next.js v14 - How to debug error in production

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Hey guys, I'm building my first website with Nextjs + Payload and I'm having some bugs in production that I can't really track or debug.

I specifically installed Sentry for that. Basically, the error that it gives me is:

Error: An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error.


Everything is working in dev. I have a slight suspicion it's something with fetching the data, but no idea how to debug this.

Here's the website btw https://schooljob.coolify.koev.cz/ - still in very early stages and it crashes randomly.

0 Replies