Enabled SSR with pre-renders

- Enable server output mode
- Pre-render for (almost) every .astro file
- Fixed custom middleware
This commit is contained in:
2024-07-08 23:01:44 +02:00
parent 397ba05c7c
commit 7a71a66dc7
14 changed files with 25 additions and 15 deletions

View File

@ -1,4 +1,6 @@
---
export const prerender = true;
import SinglePage from "../layouts/SinglePage.astro";
import AboutModule from "./AboutModule.astro";

View File

@ -1,5 +1,6 @@
---
const { row, flipped, image, alt } = Astro.props;
---
export const prerender = true;
const { row, flipped, image } = Astro.props;
---
<div class={`rows-start-${row} row-span-1 h-full w-full`}>

View File

@ -1,4 +1,5 @@
---
export const prerender = true;
import SingleCompositionCard from "./SingleCompositionCard.astro";
import { Separator } from "./ui/separator";

View File

@ -1,4 +1,5 @@
---
export const prerender = true;
import { ContactButton } from "./ContactButton";
---

View File

@ -1,4 +1,5 @@
---
export const prerender = true;
import SinglePage from "../layouts/SinglePage.astro";
import { getLangFromUrl, useTranslations } from "../i18n/utils";

View File

@ -1,4 +1,5 @@
---
export const prerender = true;
import { ThemeSelector } from "./ThemeSelector"
import NavbarSkeleton from "./NavbarSkeleton.astro";
import { LangSwitcher } from "./LangSwitcher";

View File

@ -1,3 +1,6 @@
---
export const prerender = true;
---
<nav class="w-full flex justify-center">
<div class="fixed w-full top-0 z-50 bg-bkgNavbar/70 shadow-md rounded-b-md backdrop-blur-lg">
<div

View File

@ -1,6 +1,6 @@
---
import SinglePostCard from "./SinglePostCard.astro";
export const prerender = true;
const { filteredPosts } = Astro.props;
---

View File

@ -1,6 +1,7 @@
---
import SinglePage from "../layouts/SinglePage.astro";
import { ShowcaseTabs } from "./ShowcaseTabs.jsx";
export const prerender = true;
---
<SinglePage>

View File

@ -1,4 +1,5 @@
---
export const prerender = true;
import {
Card,
CardContent,

View File

@ -1,5 +1,5 @@
---
import { Image } from "astro:assets";
export const prerender = true;
import {
Card,
CardContent,