Types Reference
SitemapConfig
Section titled “SitemapConfig”Properties:
sitemap(Sitemap[]): An array of route configuration objects to customize the sitemapi18n(object): Internationalization configuration for the sitemapdefaultLocale(string, required): The default locale for your sitelocales(Record<string, string>, required): A map of locale codes to their corresponding language codes
Sitemap
Section titled “Sitemap”Properties:
route(string, required): The route path for the page. Must start with/(e.g.,/about,/blog/post-1)lastModified(string | Date): The date when the page was last modifiedchangeFrequency('always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never'): How frequently the page is likely to changepriority(number): The priority of this URL relative to other URLs on your site. Value must be between 0.0 and 1.0
RobotsConfig
Section titled “RobotsConfig”Properties:
rules(RobotRule | RobotRule[], required): Rules for web crawlers. Can be a single rule object or an array of rule objectssitemap(string | string[]): The URL(s) of your sitemap file(s)host(string): The preferred domain for your site (e.g.,"https://example.com")
RobotRule
Section titled “RobotRule”Properties:
userAgent(string | string[], optional for single rule, required for array): The user agent(s) the rule applies to (e.g.,"*","Googlebot")allow(string | string[]): Path(s) that are allowed to be crawleddisallow(string | string[]): Path(s) that are not allowed to be crawledcrawlDelay(number): Time (in seconds) the crawler should wait between requests