Getting 500 error on prod

In our project, we are using Strapi CMS with Next.js for the frontend and GraphQL for API requests. We are encountering a 500 server error in production whenever we do not include relationships and data sources in our CMS. How can we address this issue through code?

This topic has been created from a Discord post (1259761799218069524) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

What type of relation you use? 1-1, many-many? Can you give detailed response?

This feels like an x-y problem: What is the XY problem? - Meta Stack Exchange