From 16eceb7f47e69991b522c8f8ccec986875b899f1 Mon Sep 17 00:00:00 2001 From: Darius Cepulis Date: Wed, 11 Mar 2026 10:59:24 -0500 Subject: [PATCH] fix(site): filter devOnly posts from RSS feed (#888) Co-authored-by: Claude Opus 4.6 --- site/src/pages/rss.xml.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/src/pages/rss.xml.js b/site/src/pages/rss.xml.js index 76f05ce4..46f236d2 100644 --- a/site/src/pages/rss.xml.js +++ b/site/src/pages/rss.xml.js @@ -4,7 +4,10 @@ import { SITE_DESCRIPTION, SITE_TITLE } from '@/consts'; // TODO cache idk this can be static export async function GET(context) { - const posts = await getCollection('blog'); + const posts = (await getCollection('blog')) + .filter((post) => !post.data.devOnly || import.meta.env.DEV) + .sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf()); + return rss({ title: SITE_TITLE, description: SITE_DESCRIPTION,