mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-17 03:56:19 +02:00

* refactor: separate rss and atom generation, optimize back button logic, remove redundant whitespace in component styles * fix: add missing <published> tag in atom feed
13 lines
308 B
TypeScript
13 lines
308 B
TypeScript
import type { APIContext } from 'astro'
|
|
import { moreLocales } from '@/config'
|
|
import { generateAtom } from '@/utils/feed'
|
|
|
|
export function getStaticPaths() {
|
|
return moreLocales.map(lang => ({
|
|
params: { lang },
|
|
}))
|
|
}
|
|
|
|
export async function GET(context: APIContext) {
|
|
return generateAtom(context)
|
|
}
|