iamvishnusankar/next-sitemap

Additional sitemaps included in robots.txt despite includeNonIndexSitemaps set to false

paras-malhotra opened this issue · 2 comments

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

Related: #481, #656

Here's a PR fixing it, which is closed by a bot like the previous issues: #568

Closing this issue due to inactivity.