Actually fix broken nextjs

This commit is contained in:
Timothy Pidashev
2024-06-05 18:09:14 -07:00
parent ef9522cf3e
commit 4c97f4f52d
21 changed files with 226 additions and 4065 deletions
-18
View File
@@ -1,18 +0,0 @@
import { getBlogBySlug, getAllBlogSlug } from "../fetchers"
export async function generateStaticParams() {
return getAllBlogSlug()
}
export default async function BlogPage({
params,
}: {
params: { slug: string }
}) {
const blog = await getBlogBySlug(params.slug)
return (
<main className="prose">
<article>{blog.content}</article>
</main>
)
}