import { getPublishedArticles, getTagList } from '@/lib/queries'; import ArticleCard from '@/components/ArticleCard'; import { resolveCoverImage } from '@/lib/cover'; import { InFeedAd, SidebarAd } from '@/components/ads/placements'; import Link from 'next/link'; export const dynamic = 'force-dynamic'; export default async function HomePage({ searchParams, }: { searchParams: { page?: string }; }) { const page = Math.max(1, parseInt(searchParams.page ?? '1', 10) || 1); const PER = 21; const [articles, tags] = await Promise.all([ getPublishedArticles('top-stories', PER, (page - 1) * PER), getTagList(12), ]); const hero = articles[0]; const rest = articles.slice(1); return ( <>
{hero.excerpt}
No briefings yet
The ingestion worker has not published anything yet. Trigger your first run (see the README “First run” section) and this page will fill with fresh briefings.