Application error: a server-side exception has occurred

Hi can anyone help me with this question
https://stackoverflow.com/questions/79633564/data-undefined-in-vercel-nextjs-production-with-mongoose