Feat/wiki #37
@@ -18,6 +18,10 @@ export default async function Page({ params }: PageProps) {
|
|||||||
const { slug } = await params;
|
const { slug } = await params;
|
||||||
const article = await getWikiPageBySlug(slug);
|
const article = await getWikiPageBySlug(slug);
|
||||||
|
|
||||||
|
if (!article) {
|
||||||
|
notFound();
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article className="prose prose-invert max-w-none p-6">
|
<article className="prose prose-invert max-w-none p-6">
|
||||||
<h1>{article.title}</h1>
|
<h1>{article.title}</h1>
|
||||||
|
|||||||
Reference in new issue
Block a user