import { getWikiPageBySlug } from '@/lib/wiki'; import { notFound } from 'next/navigation'; type PageProps = { params: Promise<{ slug: string; }>; }; export default async function Page({ params }: PageProps) { const { slug } = await params; const article = await getWikiPageBySlug(slug); if (!article) { notFound(); // Zeigt die 404-Seite, wenn z. B. installation.md nicht existiert } return (

{article.title}

{article.updatedAt && (

Stand: {article.updatedAt}

)} {/* Gerendertes Markdown-HTML anzeigen */}
); }