Cannot create static sitemaps on nextjs with next-sitemap - undefined sitemap.xml

366 Views Asked by At

The sitemap files generated using this library with NextJS - have undefined as their site URL. It's not even capturing the priority etc. It seems that the config file isn't loading at all.

To Reproduce - Here is a direct link to the sandbox reproduction

Expected behavior - Expected to get example.com as the siteUrl

Here are the screenshots of the package.json and config file and the output-

package.json

sitemap-config

image

0

There are 0 best solutions below