Prismic Preview 500error

I test site using Prismic and next.js.
All working good but when I using prismic preview then I get a 500 Internal Server Error.
Preview is working fine localhost also I tested with other provider and perfect working.
So this issue is coming only Netlify.

Can you help me?

Hello @groupitdevelopers, welcome!

Can you share us a link to this specific website where you get the 500 Internal Server Error?