diff --git a/lib/getBlogPost.ts b/lib/getBlogPost.ts index afd4fef..7044ea0 100644 --- a/lib/getBlogPost.ts +++ b/lib/getBlogPost.ts @@ -2,7 +2,11 @@ import { client } from "./sanity"; export const getAllBlogPostSlugs = async () => { const query = `*[_type == 'blog'] { "slug": slug.current }`; - const slugs: { slug: string }[] = await client.fetch(query); + const slugs: { slug: string }[] = await client.fetch( + query, + {}, + { cache: "no-store" } + ); return slugs; };