import rss from '@astrojs/rss'; import { formatLocalizedDateString } from '../lib/formatDate'; export async function GET(context) { const posts = Object.values( import.meta.glob("./blog/*.{md,mdx}", { eager: true }) ); return rss({ title: 'Blauwasser Mausis | Blog', description: 'Segeln, Fahrrad, Abenteuer', site: context.site, items: posts.map(post => ({ title: post.frontmatter.title, pubDate: post.frontmatter.date, description: post.frontmatter.description, link: `/blog/${post.frontmatter.slug}`, author: post.frontmatter.author, customData: ` `, })), customData: `de-de`, }); }