@clarnx Awesome, that worked perfectly! I deleted the old site and deployed the site through Github. I also added the custom domain to the site etc. One last question, the sitemap being generated lists the url’s of the site before the custom domain was added. Is there a way to prompt the sitemap to update?
Edit: I redeployed and it resolved the issue. Thank you for taking the time to assist me.
Hi @clarnx@CitrineDragon
I have the same problem installing my Sitemap to my google search console and Yandex, I followed all the step, but still don’t work, I also installed some sitemap plugin but doesn’t work can I have help thanks
Hey @clarnx I read through this forum and clicked the link you provided. I primarily want to use Netlify’s plugin since it automatically updates the sitemap. Our site has been deployed properly through Github, changes are updated automatically without issue in Netlify. Following your instructions after installing the plugin, my entire netlify yoml file has the following:
I’ve installed the plugin via your UI not the cmd line. What would you recommend?
Update So I got the sitemap to generate by changing my buildDir to =“build”. But the XML is empty, perhaps because svelte files are well… svelte files and not .html?
Either way, I don’t think Netlify’s plugin is meant to be user friendly, my recommendation is to have an interface that asks for the framework a user is using and adapt the plugin that way. I will attempt to use a different dependency built for the framework i’m using like svelte-sitemap on NPM.
@jasiqli I didn’t code the site, but it’s built on svelte, the publish directory could therefore be either “build” or “public”. Not sure where to look. However it is odd, because according to the documentation it should inherit the site build setting on its own.
Do you know if the default path is sitename.topdomain/sitemap.xml ?
Also how long does it typically take to generate the sitemap?
Because so far nothing happened after pushing “public” as the buildDir, Netlify recognized the change 10 minutes ago.
Is the Svelte site generating static files with a .html extension? My guess (without seeing the project) is probably not (based on past encounters.)
There is a sveltekit-sitemap plugin and documentation on the SvelteKit site regarding sitemaps. These are quite possibly more appropriate options for the project.
my static folder looks like this, however the code is svelte not sveltekit (just realized there’s a difference). So “public” should be the correct path for buildDir (which I had updated and the issue persisted).