Files
radio.org.tr/.netlify/build/pages/rss.xml.astro.mjs
T
Buğra Canata e05f99a0d2 Enable KeyStatic CMS for production
Changes:
- Added Netlify adapter for server-side rendering
- Changed output mode from static to server
- Updated KeyStatic storage from local to GitHub
- Removed SKIP_KEYSTATIC from Netlify build
- KeyStatic Admin UI will be available at /keystatic

Features:
- Server-side rendering with Netlify Functions
- GitHub integration for content management
- Production-ready KeyStatic Admin UI

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-17 20:05:42 +03:00

35 lines
984 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { getRssString } from '@astrojs/rss';
import { S as SITE, M as METADATA, a as getPermalink } from '../chunks/permalinks_BMxSf01e.mjs';
import { f as fetchPosts } from '../chunks/blog_J6XM7OAu.mjs';
export { renderers } from '../renderers.mjs';
const GET = async () => {
const posts = await fetchPosts();
const rss = await getRssString({
title: `${SITE.name}s Blog`,
description: METADATA?.description,
site: "https://www.radio.org.tr",
items: posts.map((post) => ({
link: getPermalink(post.permalink, "post"),
title: post.title,
description: post.excerpt,
pubDate: post.publishDate
})),
trailingSlash: SITE.trailingSlash
});
return new Response(rss, {
headers: {
"Content-Type": "application/xml"
}
});
};
const _page = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
__proto__: null,
GET
}, Symbol.toStringTag, { value: 'Module' }));
const page = () => _page;
export { page };