Hello! I’m generating a sitemap for Nextjs 14 and it works fine on local and also it works on other hosting platforms.
On Netlify, I’m getting a 500 error page when I visit the sitemap.
I’m not getting any errors during the build, the site works great.
Getting these messages on console when I visit mysite.com/sitemap.xml
{
"name": "Internal Server Error.",
"message": "500 - Internal Server Error.",
"statusCode": 500
}
A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred