From e955c3cf31f82b2097136effe35e223cea9c4bca Mon Sep 17 00:00:00 2001 From: Neeldhara Misra Date: Fri, 20 Feb 2026 14:17:20 +0530 Subject: [PATCH] Fix RSS feed to handle nullable descriptions The description field in blog/project schemas can be null, causing RSS generation to fail. Added fallback to empty string. Co-Authored-By: Claude Opus 4.5 --- src/pages/rss.xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/rss.xml.js b/src/pages/rss.xml.js index 40e979e..5ae34ac 100644 --- a/src/pages/rss.xml.js +++ b/src/pages/rss.xml.js @@ -19,7 +19,7 @@ export async function GET(context) { site: context.site, items: items.map((item) => ({ title: item.data.title, - description: item.data.description, + description: item.data.description ?? "", pubDate: item.data.date, link: `/${item.collection}/${item.id}/`, })),