Automatically generate sitemap for SEO, which helps search engines crawl your site.
Add the following configuration in rspress.config.ts:
This plugin accepts an object parameter with the following type:
stringThe site URL for deployment access, for example https://example.com.
When there is a base configuration, siteUrl needs to include the base path. For example:
{}Used to set custom sitemap values for certain important pages individually.
ChangeFreq'monthly'"always" | "hourly" | "daily" | "weekly" | "monthly" | "yearly" | "never"changefreq: How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page.
Sets the default changefreq value for each page in the generated sitemap file.
Priority'0.5'"0.0" | "0.1" | "0.2" | "0.3" | "0.4" | "0.5" | "0.6" | "0.7" | "0.8" | "0.9" | "1.0"priority: The priority of this URL relative to other URLs on your site.
Sets the default priority value for each page in the generated sitemap file.