File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
src/pages/feeds/posts/default Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 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)
2424const integrations = [ mdx ( ) , sitemap ( ) , react ( ) ] ;
Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments