Skip to content

Commit cf6c33f

Browse files
JacobCoffeeclaude
andauthored
fix: serve RSS XML at old Blogger feed URL (#25)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6b17ea6 commit cf6c33f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

astro.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ try {
1717
// No redirects file yet (run migration first)
1818
}
1919

20-
// Blogger feed URL → new RSS feed
21-
redirects["/feeds/posts/default"] = "/rss.xml";
20+
// Old Blogger feed URL is handled by src/pages/feeds/posts/default/index.ts
21+
// so RSS readers get actual XML instead of an HTML meta-refresh redirect.
2222

2323
// Keystatic integration only in dev mode (requires server rendering)
2424
const integrations = [mdx(), sitemap(), react()];
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Serve RSS at the old Blogger feed URL so RSS readers don't break.
2+
// See: https://github.com/python/python-insider-blog/issues/16
3+
import type { APIContext } from "astro";
4+
import { GET as rssGet } from "../../../rss.xml";
5+
6+
export const prerender = true;
7+
8+
export const GET = (context: APIContext) => rssGet(context);

0 commit comments

Comments
 (0)