Skip to content

Commit

Permalink
remove api calls from sitemap
Browse files Browse the repository at this point in the history
  • Loading branch information
saml33 committed Feb 1, 2024
1 parent 8294585 commit f9ced7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/sitemap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { MetadataRoute } from 'next'
import { fetchTokenPages } from '../contentful/tokenPage'
import { fetchContentfulTokenPages } from '../contentful/tokenPage'
import { fetchTokenCategoryPages } from '../contentful/tokenCategoryPage'
import { fetchBlogPosts } from '../contentful/blogPost'
import { fetchLearnPosts } from '../contentful/learnPost'
Expand All @@ -19,7 +19,7 @@ async function sitemap(): Promise<MetadataRoute.Sitemap> {
}))
}
const getTokenSlugs = async () => {
const tokenPages = await fetchTokenPages({ preview: false })
const tokenPages = await fetchContentfulTokenPages({ preview: false })

return tokenPages.map((page) => ({
slug: page.slug,
Expand Down

0 comments on commit f9ced7f

Please sign in to comment.