Typed blog with dynamic routes
2 hA blog with a list page and a page per post, built from a typed array.
- Define a Post type and an array of 3 posts
- List posts on /blog with links
- Build /blog/[slug] with generateStaticParams
- Return notFound() for unknown slugs and add metadata per post
Done when: Each post has its own URL and title, and a wrong URL shows a 404.
- TypeScript types
- Dynamic routes
- Metadata