Additional sitemaps included in robots.txt despite includeNonIndexSitemaps set to false
paras-malhotra opened this issue · 2 comments
paras-malhotra commented
Describe the bug
Here is my config:
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.APP_URL ?? 'https://example.com',
generateRobotsTxt: true,
robotsTxtOptions: {
additionalSitemaps: [
'https://example.com/blog/sitemap.xml'
],
includeNonIndexSitemaps: false
}
// ...other options
}
Despite this config, /blog/sitemap.xml appears in both sitemap.xml (index sitemap) and robots.txt
To Reproduce
Steps explained above
Expected behavior
/blog/sitemap.xml should not appear in robots.txt but should appear in sitemap.xml
FINDarkside commented
github-actions commented
Closing this issue due to inactivity.