diff --git a/.claude/settings.local.json b/.claude/settings.local.json index 2ad86b6..cb61ced 100644 --- a/.claude/settings.local.json +++ b/.claude/settings.local.json @@ -9,7 +9,9 @@ "Bash(export PATH=\"$HOME/.nvm/versions/node/v22.22.2/bin:$HOME/.local/share/pnpm:$PATH\")", "Bash(pnpm install *)", "Bash(node scripts/migrate.js)", - "Bash(node scripts/seed.js)" + "Bash(node scripts/seed.js)", + "Bash(pnpm typecheck *)", + "Bash(pnpm build *)" ] } } diff --git a/src/pages/updates/feed.xml.ts b/src/pages/updates/feed.xml.ts index 875bd97..5eda7de 100644 --- a/src/pages/updates/feed.xml.ts +++ b/src/pages/updates/feed.xml.ts @@ -1,15 +1,16 @@ import type { APIRoute } from 'astro'; -import { getCollection } from 'astro:content'; +import { getCollection, type CollectionEntry } from 'astro:content'; export const GET: APIRoute = async ({ site }) => { const updates = await getCollection('updates'); const sorted = updates.sort( - (a, b) => new Date(b.data.date).getTime() - new Date(a.data.date).getTime() + (a: CollectionEntry<'updates'>, b: CollectionEntry<'updates'>) => + new Date(b.data.date).getTime() - new Date(a.data.date).getTime() ); const base = 'https://bifrost.fenja.ai'; - const items = sorted.map((u) => { + const items = sorted.map((u: CollectionEntry<'updates'>) => { const url = `${base}/updates/${u.slug}`; const date = new Date(u.data.date).toUTCString(); return `