--- import { type CollectionEntry, getCollection } from 'astro:content'; import DefaultLayout from '@/layouts/DefaultLayout.astro'; import { BlogPost } from '@/components/sections/blog-post'; import { SITE_TITLE, SITE_DESCRIPTION } from '@/consts'; import NewsletterSignup from '@/components/sections/newsletter-signup'; import { render } from 'astro:content'; export async function getStaticPaths() { const posts = await getCollection('reviews'); return posts.map((post) => ({ params: { slug: post.id }, props: post, })); } type Props = CollectionEntry<'reviews'>; const post = Astro.props; const { Content } = await render(post); ---