From f0022e1cc09116d6a04c9f6b94f10e8a47e1d845 Mon Sep 17 00:00:00 2001 From: ansidev Date: Thu, 1 May 2025 19:46:01 +0700 Subject: [PATCH 1/2] fix: error while rendering page /rss.xml --- src/pages/rss.xml.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/rss.xml.ts b/src/pages/rss.xml.ts index 2592b977..9b027e69 100644 --- a/src/pages/rss.xml.ts +++ b/src/pages/rss.xml.ts @@ -2,11 +2,11 @@ import rss from '@astrojs/rss' import type { APIContext } from 'astro' import { getCollection } from 'astro:content' -import siteConfig from '@/configs/site' +import siteConfig from '@/configs/site.ts' const { title, description } = siteConfig -export const get = async ({ site }: APIContext) => { +export const GET = async ({ site }: APIContext) => { if (site === undefined || site.toString().length === 0) { return { body: '' From 27b216623a6158c86a00a25ef8e1a9384be20b97 Mon Sep 17 00:00:00 2001 From: ansidev Date: Thu, 1 May 2025 19:46:21 +0700 Subject: [PATCH 2/2] chore(config): update typescript config --- tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index e3ce76aa..e077ae30 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "astro/tsconfigs/strictest", "compilerOptions": { - "module": "Node16", - "moduleResolution": "Node16", + "module": "NodeNext", + "moduleResolution": "NodeNext", "strict": true, "verbatimModuleSyntax": true, "baseUrl": ".",