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>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
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 };
|
||||
Reference in New Issue
Block a user