Skip to content

feat(blog): add /blog/rss.xml feed (fixes 404)#2

Merged
ralyodio merged 1 commit into
mainfrom
feat/blog-rss-feed
Jun 25, 2026
Merged

feat(blog): add /blog/rss.xml feed (fixes 404)#2
ralyodio merged 1 commit into
mainfrom
feat/blog-rss-feed

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

What

https://saasrow.com/blog/rss.xml returned a 404 — there was no route serving it. The blog only had app/blog/page.tsx and app/blog/[slug]/page.tsx.

Changes

  • app/blog/rss.xml/route.ts — new Next.js route handler emitting a valid RSS 2.0 feed from getBlogList() (published blog_posts). Per-item title/link/guid/pubDate, plus description (excerpt), dc:creator, and tag <category>s; channel atom:link rel="self"; hourly revalidate; CDN cache headers. Uses the same NEXT_PUBLIC_SITE_URLhttps://www.saasrow.com fallback as robots.ts/sitemap.ts.
  • app/blog/page.tsx — added an application/rss+xml alternate to metadata for feed autodiscovery.

Verification

  • npx tsc --noEmit passes.
  • Middleware (trackReferralCodeNextResponse.next()) passes the request through; it does not intercept the feed.

🤖 Generated with Claude Code

Add a Next.js route handler at app/blog/rss.xml/route.ts that emits a
valid RSS 2.0 feed from getBlogList() (published blog_posts). Includes
per-post title/link/guid/pubDate, excerpt, dc:creator, tag categories,
an atom:link rel="self", hourly revalidate, and CDN cache headers.

Also add an application/rss+xml alternate to the blog page metadata for
feed autodiscovery.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@ralyodio ralyodio merged commit 8a0c7e6 into main Jun 25, 2026
7 checks passed
@ralyodio ralyodio deleted the feat/blog-rss-feed branch June 25, 2026 10:13
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.

1 participant