I don't understand how to fetch getByUID. Where is UID and how do I fetch it in Nextjs?
When you create a type in Prismic, you can add a UID field to it and then use that field to query documents from that type. You can learn more in the Next.js fetching docs:
I hope that helps!