diff options
Diffstat (limited to 'src/pages/posts')
| -rw-r--r-- | src/pages/posts/[...slug].astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 02047bd..76e4f28 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -6,7 +6,7 @@ import PostLayout from "@/layouts/BlogPost.astro"; // if you're using an adaptor in SSR mode, getStaticPaths wont work -> https://docs.astro.build/en/guides/routing/#modifying-the-slug-example-for-ssr export const getStaticPaths = (async () => { - const blogEntries = await getAllPosts(); + const blogEntries = await getAllPosts(true); // Include archived posts for direct access return blogEntries.map((post) => ({ params: { slug: post.id }, props: { post }, |
