在NextJs应用程序中,我使用nextjs-sitemap-generator
包来处理站点 map .在这里我试图避免一些重复的URL,我如何才能将其添加到ignoredPaths
中.
我有http://localhost/about/security
和http://localhost/security
,我只想删除http://localhost/security
,所以如果我加上ignoredPaths: ['/security']
,那么这两个链接都会被删除.
请帮忙解决这个问题.
如果我使用next-sitemap
包,我如何使用exclude
或其他选项进行相同的更改?