Sitemap
Generate sitemaps from your catalog.
Updated
On this page
Overview
Generate a sitemap for search engines using the SDK's sitemap module. This returns all slugs and last-modified dates.
SDK Usage
import dash from "@/lib/dash"
const data = await dash.sitemap.get()
// data = {
// products: [{ slug: "blue-dream", updated_at: "2025-01-15T..." }],
// categories: [{ slug: "flower", updated_at: "..." }],
// brands: [{ slug: "premium-farms", updated_at: "..." }],
// blogs: [{ slug: "my-first-post", updated_at: "..." }]
// }