Skip to content

Add RSS 2.0 feed for published blog posts#68

Draft
Copilot wants to merge 4 commits intomainfrom
copilot/add-rss-feed-for-posts
Draft

Add RSS 2.0 feed for published blog posts#68
Copilot wants to merge 4 commits intomainfrom
copilot/add-rss-feed-for-posts

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 3, 2026

Implements an RSS 2.0 feed at /feed.xml for published blog posts with auto-discovery support.

Changes

  • src/app/feed.xml/route.ts - Dynamic route returning RSS 2.0 XML

    • Queries 50 most recent published posts ordered by publishDate DESC
    • XML-escapes all user content and environment variables
    • 1-hour cache control
  • src/app/layout.tsx - Added RSS auto-discovery metadata

    alternates: {
      types: {
        'application/rss+xml': '/feed.xml',
      },
    }
  • tests/rss.spec.ts - E2E validation of XML structure and auto-discovery link

RSS Structure

<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Nicholas Romero</title>
    <link>https://ncrmro.com</link>
    <description>Personal Site of Nicholas Romero</description>
    <atom:link href="https://ncrmro.com/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Post Title</title>
      <link>https://ncrmro.com/posts/slug</link>
      <guid isPermaLink="true">https://ncrmro.com/posts/slug</guid>
      <pubDate>Wed, 01 Jan 2026 00:00:00 GMT</pubDate>
      <description>Post description...</description>
    </item>
  </channel>
</rss>
Original prompt

Add rss feed for posts


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Jan 3, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ncrmro-website d076db8 Commit Preview URL

Branch Preview URL
Jan 03 2026, 08:27 PM

Copilot AI changed the title [WIP] Add RSS feed for blog posts Add RSS 2.0 feed for published blog posts Jan 3, 2026
Copilot AI requested a review from ncrmro January 3, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants