this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

maybe types are wrong?

+11 -10
+11 -10
src/app/rss/route.ts
··· 8 8 export async function GET() { 9 9 const posts = await getPosts(); 10 10 11 - const rss = new RSS( 12 - { 13 - title: "mozzius.dev", 14 - feed_url: "https://mozzius.dev/rss", 15 - site_url: "https://mozzius.dev", 16 - description: "a webbed site", 17 - }, 18 - posts.map((post) => ({ 11 + const rss = new RSS({ 12 + title: "mozzius.dev", 13 + feed_url: "https://mozzius.dev/rss", 14 + site_url: "https://mozzius.dev", 15 + description: "a webbed site", 16 + }); 17 + 18 + for (const post of posts) { 19 + rss.item({ 19 20 title: post.value.title ?? "Untitled", 20 21 description: post.value.content, 21 22 url: `https://mozzius.dev/post/${post.uri.split("/").pop()}`, 22 23 date: new Date(post.value.createdAt ?? Date.now()), 23 - })), 24 - ); 24 + }); 25 + } 25 26 26 27 return new Response(rss.xml(), { 27 28 headers: {