🐛 Fix sitemap

This commit is contained in:
2024-02-24 22:12:01 +08:00
parent d72aa8ec51
commit 304870ff16
2 changed files with 8 additions and 14 deletions

View File

@ -16,14 +16,6 @@ export async function GET() {
const posts = await client.fetch<any[]>(`*[_type == "post"] {
title, description, slug, publishedAt,
mainImage {
asset -> {
_id,
url
},
alt
},
"categories": categories[]->title,
}`);
posts.forEach((item) => {