Home / Type/ SitemapOptions Type — astro Architecture

SitemapOptions Type — astro Architecture

Architecture documentation for the SitemapOptions type/interface in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6820efea_a509_672e_3988_3d8c69102f2c["SitemapOptions"]
  79573a16_7c46_af8f_5c1d_ea09d9ca9085["index.ts"]
  6820efea_a509_672e_3988_3d8c69102f2c -->|defined in| 79573a16_7c46_af8f_5c1d_ea09d9ca9085
  style 6820efea_a509_672e_3988_3d8c69102f2c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/sitemap/src/index.ts lines 21–55

export type SitemapOptions =
	| {
			filenameBase?: string;
			filter?(page: string): boolean;
			customSitemaps?: string[];
			customPages?: string[];

			i18n?: {
				defaultLocale: string;
				locales: Record<string, string>;
			};
			// number of entries per sitemap file
			entryLimit?: number;
			// sitemap specific
			changefreq?: ChangeFreq;
			lastmod?: Date;
			priority?: number;

			// called for each sitemap item just before to save them on disk, sync or async
			serialize?(item: SitemapItem): SitemapItem | Promise<SitemapItem | undefined> | undefined;

			xslURL?: string;
			chunks?: Record<
				string,
				(item: SitemapItem) => SitemapItem | Promise<SitemapItem | undefined> | undefined
			>;
			// namespace configuration
			namespaces?: {
				news?: boolean;
				xhtml?: boolean;
				image?: boolean;
				video?: boolean;
			};
	  }
	| undefined;

Frequently Asked Questions

What is the SitemapOptions type?
SitemapOptions is a type/interface in the astro codebase, defined in packages/integrations/sitemap/src/index.ts.
Where is SitemapOptions defined?
SitemapOptions is defined in packages/integrations/sitemap/src/index.ts at line 21.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free