Skip to content

Commit

Permalink
perf: prerender blog posts
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-berlin committed Feb 26, 2025
1 parent 50a7a1e commit edd5480
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/[lang]/posts/[postSlug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import he from "he";
import type { InferGetStaticParamsType, InferGetStaticPropsType } from "astro";
export const prerender = true;
export const getStaticPaths = async () => {
const postWithSlugsDe = await getAllPostsWithSlugs();
const postWithSlugsEn = await getAllPostsWithSlugs("EN");
Expand Down

0 comments on commit edd5480

Please sign in to comment.