don't console.log in rss.xml

This commit is contained in:
Michael Zhang 2024-12-02 05:36:33 -06:00
parent 4dbbd79b06
commit 1bfabbc5be

View file

@ -20,7 +20,6 @@ export async function GET(context) {
}) })
.slice(0, 30) .slice(0, 30)
.map(([file, post]) => { .map(([file, post]) => {
console.log("post", { file, post });
return { return {
title: post.frontmatter.title ?? "", title: post.frontmatter.title ?? "",
pubDate: new Date(post.frontmatter.date), pubDate: new Date(post.frontmatter.date),
@ -30,8 +29,6 @@ export async function GET(context) {
}; };
}); });
console.log("posts", posts);
return rss({ return rss({
title: SITE_TITLE, title: SITE_TITLE,
description: SITE_DESCRIPTION, description: SITE_DESCRIPTION,