Skip to content

Commit

Permalink
fix(sitemap): dynamic sitemap (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom authored Sep 16, 2024
1 parent 8ca6ad9 commit 012a638
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ interface SitemapDocument {

const clientWithToken = client.withConfig({ token });

export const dynamic = "force-dynamic";
export const fetchCache = "default-no-store";

export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const documents =
await clientWithToken.fetch<SitemapDocument[]>(`*[defined(slug)]`);
Expand Down

0 comments on commit 012a638

Please sign in to comment.