Sitemaps (< PagesJS 1.0.0) | Yext Hitchhikers Platform

The Pages system automatically generates a sitemap on your behalf based on the contents of your deploy. Configuration for your sitemap can be set in the sites-config/sitemap.json file. Sitemaps are generated for every deploy and nightly to ensure all paths are up-to-date.

This file contains configuration for how Pages will generate your sitemap. Sitemaps help search engines crawl your site, and the Pages system will automatically create a well-formed sitemap according to the rules in sitemap.json. If you want more information about sitemaps in general, check out this resource .

Below is a sample sitemap.json:

  "disableSitemapGeneration": false, // Optional field, defaults to false.
  "fileName": "custom-sitemap-name.xml", // Optional field. 
  "exclude_list": [

If fileName is not included, the sitemap will be called sitemap.xml. The sitemap will be served at the root of your site i.e.

If specifying a custom fileName for your sitemap, make sure to use the .xml file suffix.

light bulb
Sitemaps have a maximum limit of 50,000 URLs. If a site has more than 50,000 URLs, chunk files will be generated that are referenced by the root sitemap file. These too will use the configured name - in the above example, these would be generated as custom-sitemap-name.0.xml, custom-sitemap-name.1.xml, custom-sitemap-name.2.xml, etc.

Each deploy has its own fully independent sitemap that can be previewed. Sitemaps are automatically submitted to Google Search Console to ensure your pages are crawled and indexed.

Sitemaps are generated asynchronously, so there may be a slight delay between deploy and when the sitemaps appear as live URLs. This delay will normally be very small - on the order of seconds - but if you do not see your sitemap appear as a live URL right away, check back in a few minutes to ensure the updated version has appeared.