import { Button } from "@/components/ui/button"; import { Download } from "lucide-react"; import Link from "next/link"; import ReactMarkdown from "react-markdown"; import { Skeleton } from "@/components/ui/skeleton"; import clientPromise from "@/lib/db"; interface Bullet { point: string; } interface LOGS { _id: string; date: string; version: string; bullets?: Bullet[]; // Make bullets optional } export const dynamic = "force-static"; const LogsPage: React.FC = async () => { let error: Error | null = null; let downloads: LOGS[] = []; try { const client = await clientPromise; const db = client.db(process.env.MONGODB_DB); downloads = (await db .collection("logs") .find() .toArray()) as unknown as LOGS[]; } catch (err) { error = err as Error; } const reversedDownloads = [...downloads].reverse(); return (

SVR.JS change log

See the changes done to SVR.JS web server.

{error &&

{error.message}

} {reversedDownloads.map((download) => (

{download.version}

{download.date}
))}
); }; export default LogsPage;