How to exclude page from sitemap.xml using gatsby

I have this page URL: https://www.example.com/en/ir-news/[…]/

and I am using plugin: gatsby-sitemap-builder I have already exclude pages like below:

  excludes: [
                
                `/en/footer`,
                
              ], 

like footer page above and now I want to exclude page: https://www.example.com/en/ir-news/[…]/
and I am doing like below:

                    excludes: [
                    
                    `/en/ir-news/[...]`, // also tried to remove en from start but did not work
                    
                  ], 

can anyone recommend where I am doing wrong?

Leave a Comment