Now I wanted to exclude the 404 page from the sitemap and I have tried to achieve that by adding the paths to exclude. My netlfiy.toml file looks something like this
Hi, @p-racoon. You can download the deploy to see the name of the file. There is a button in each successful deploy which is shown in the screenshot below:
Based on the filenames there, I believe the path that will work is this:
“./404/index.html”
If that doesn’t work or if there are other questions, please let us know.
I am surprised by all those filenames. Is your 404 file not called “404.html”? That is our docs’ recommendation, and then you should probably use /404.html in your exclude array, right?
the files are actually being generated by gatsby, and how its doing it is, it’s placing an index.html inside a folder named 404.
the filenames I used in exclude were my desperate attempts to prevent it from being added to the sitemap
Hey sorry I have lost access to the project I was working on for this, and I am down with covid give me some time to emulate it for a different gatsby project. Will get back to you on this!