--- import { getCollection } from "astro:content"; export async function getStaticPaths() { const fics = await getCollection("fanfic"); return fics .filter( (entry) => !entry.data.wip || process.env.NODE_ENV === "development" ) .map((entry) => ({ params: { slug: entry.slug }, props: { entry }, })); } const { entry } = Astro.props; const { Content } = await entry.render(); ---