Sitemap generation - Google search console error

Hello, I finished building my first wasp app but I have some issues with the sitemap. Put simply, google search console is unable to find it. How can I solve this issue ?
4 Replies
kapa.ai
kapa.ai5mo ago
Hi @VerreD0. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about sitemap generation or Google Search Console errors in the context of a Wasp app. However, it's important to ensure that your sitemap is correctly generated and placed in a location that Google can access. You might also want to check the URL you provided to Google Search Console to make sure it's correct. For more detailed guidance, you may want to refer to the Wasp documentation (https://wasp-lang.dev/docs) or ask for help in the Wasp community (https://discord.com/channels/686873244791210014). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @VerreD0, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
martinsos
martinsos5mo ago
@VerreD0 how did you define/submit your sitemap?
miho
miho5mo ago
Wasp doesn't generate the sitemap.xml file by default for you, maybe it could be useful it was like that but everyone's app is a bit different. You could probably do it manually on the client by placing a sitemap.xml file in your public folder of the app. This way when Google tries to visit your client at /sitemap.xml it would see your file. How to create this file? There are plenty resources online e.g. https://ahrefs.com/blog/how-to-create-a-sitemap/
Joshua Hardwick
SEO Blog by Ahrefs
How to Create an XML Sitemap (and Submit It to Google)
Everything you need to know about creating and submitting an XML sitemap.
martinsos
martinsos5mo ago
From what I read you also need to mention it in robots.txt then? Keep in mind that not every page needs a sitemap: if your page is quite "normal", you might be fine without one. That said I am not an expert on sitemaps.
Want results from more Discord servers?
Add your server