Add sitemap generation utility

This commit is contained in:
2026-10-14 17:41:50 +01:00
parent d9de858439
commit 632881e174
9 changed files with 289 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
import type { BunextGenerateSitemapParams, BunextSitemapEntry } from "../types";
/**
* # Generate a sitemap.xml string for all pages
* Dynamic routes are only included through a `sitemap` export in their
* `.server.ts` file, or through `additional_paths`.
*/
export default function generateSitemap(params?: BunextGenerateSitemapParams): Promise<string>;
export declare function grabSitemapEntries(params?: BunextGenerateSitemapParams): Promise<BunextSitemapEntry[]>;