Skip to main content

Sitemap

A sitemap is automatically generated and served at /sitemap.xml in production. It is built from two sources:

  • All entries with a valid sys.uri
  • Every path defined in StaticRoutes

Configuration

Sitemap options are controlled from sitemap.config.ts in the project root.

Options

OptionTypeDescription
languagesstring[]Specify the languages your project supports (e.g. ['en-GB', 'fr-FR']).
noIndexFieldstringThe field ID used on entries to declare them as noindex. Matching entries are omitted from the sitemap.
priorityMapobjectMap paths or Content Type IDs to specific sitemap priority values.
additionsstring[]Additional URLs to include in the sitemap — useful for microsites hosted on the same domain.
excludeContentTypesstring[]Content Type IDs to exclude from the sitemap entirely.
excludePathsstring[]Static route paths or URL patterns to exclude from the sitemap.

Example

sitemap.config.ts
export default {
languages: ['en-GB'],
noIndexField: 'noIndex',
priorityMap: {
'/': 1.0,
'blogPost': 0.8,
},
additions: [],
excludeContentTypes: ['internalPage'],
excludePaths: ['/admin'],
};