Removed route for meta
All checks were successful
Build and Deploy Astro Site / deploy (push) Successful in 55s

This commit is contained in:
2025-09-11 23:24:56 +02:00
parent 0e70773aa0
commit 62cdc851aa
2 changed files with 2 additions and 77 deletions

View File

@@ -1,30 +0,0 @@
import MarkdocRenderer from '@/components/Markdoc/Renderer'
import { getArticleBySlug, getArticles } from '@/lib/content/meta/articles'
import { notFound } from 'next/navigation'
interface Props {
params: Promise<{
slug: string
}>
}
export async function generateStaticParams() {
const articles = await getArticles()
return articles.map(({ slug }) => ({ slug }))
}
export default async function MetaArticlePage({ params }: Props) {
const { slug } = await params
const article = await getArticleBySlug(slug)
if (!article) {
notFound()
}
return (
<div className="page">
<h1>{article.title}</h1>
<MarkdocRenderer content={article.content} className="meta-content" />
</div>
)
}