Hi, I got this error when I try to deploy trough Vercel after creating custom types on prismic.
I use next.js and prismic
Unhandled error during request: TypeError: Cannot read property '0' of undefined15:11:55.139 at /vercel/path0/.next/serverless/pages/[lang]/[page].js:11943:35
If you are trying to deploy your Next.js application as an SSR or SSG, then it is possible that some pages you are trying to retrieve from Prismic are missing/unavaible for some reason, as you Next application will fetch all the data on build time.
But to debug this I advice you to try to build you application locally to be able to reproduce the issue on your local server.
If If that doesn't help then I would need to have more information about the error that you are having as well as a code snepit of the code where the error is happening.