Hello everyone!
I have set my project as in following example of custom server https://github.com/payloadcms/payload/tree/main/examples/custom-server APIError: The collection with slug posts can't be found. Find Operation.
But when I try run "npm run build" script I got the error message:
Error occurred prerendering page "/posts". Read more: https://nextjs.org/docs/messages/prerender-error
APIError: The collection with slug posts can't be found. Find Operation.
How to fix this issue? Maybe anyone of you had ran into similar issue.