Skip to content

Commit f0022e1

Browse files
committed
fix: error while rendering page /rss.xml
1 parent d2b4caf commit f0022e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/rss.xml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import rss from '@astrojs/rss'
22
import type { APIContext } from 'astro'
33
import { getCollection } from 'astro:content'
44

5-
import siteConfig from '@/configs/site'
5+
import siteConfig from '@/configs/site.ts'
66

77
const { title, description } = siteConfig
88

9-
export const get = async ({ site }: APIContext) => {
9+
export const GET = async ({ site }: APIContext) => {
1010
if (site === undefined || site.toString().length === 0) {
1111
return {
1212
body: ''

0 commit comments

Comments
 (0)