Skip to content

Commit

Permalink
refactor(sitemap): s → slugDocument
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiazom committed Sep 23, 2024
1 parent a8398e1 commit 5b5b65a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
const slugDocuments = await clientWithToken.fetch<DocumentWithSlug[]>(
DOCUMENTS_WITH_SLUG_QUERY,
);
const sitemapEntries = slugDocuments.map((s) => ({
url: new URL(s.slug.current, baseUrl).toString(),
lastModified: new Date(s._updatedAt),
const sitemapEntries = slugDocuments.map((slugDocument) => ({
url: new URL(slugDocument.slug.current, baseUrl).toString(),
lastModified: new Date(slugDocument._updatedAt),
}));
const landingPage = await clientWithToken.fetch<PageBuilder | null>(
LANDING_PAGE_QUERY,
Expand Down

0 comments on commit 5b5b65a

Please sign in to comment.