Skip to content

Commit

Permalink
fda
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajrekwar committed Aug 26, 2024
1 parent b21ad9e commit e942601
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/blog/[slug]/generateStaticParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<div>{slug}</div>
)
}

0 comments on commit e942601

Please sign in to comment.