From e94260163cf54e8a6ad106115adcd61487c01897 Mon Sep 17 00:00:00 2001 From: Neeraj Rekwar <88387699+neerajrekwar@users.noreply.github.com> Date: Mon, 26 Aug 2024 08:03:06 +0000 Subject: [PATCH] fda --- app/blog/[slug]/generateStaticParams.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/blog/[slug]/generateStaticParams.ts b/app/blog/[slug]/generateStaticParams.ts index cf4ec75a9..0cfb9101d 100644 --- a/app/blog/[slug]/generateStaticParams.ts +++ b/app/blog/[slug]/generateStaticParams.ts @@ -3,5 +3,12 @@ import { posts } from '../data/posts'; export async function generateStaticParams() { return posts.map((post) => ({ slug: post.slug, // Generate paths based on the `slug` - })); + })); } +export default function Page({ params }) { + const { slug } = params + + return ( +