Enabled SSR with pre-renders
- Enable server output mode - Pre-render for (almost) every .astro file - Fixed custom middleware
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
|
||||
import SinglePage from "../layouts/SinglePage.astro";
|
||||
|
||||
import AboutModule from "./AboutModule.astro";
|
||||
|
@ -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`}>
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
import SingleCompositionCard from "./SingleCompositionCard.astro";
|
||||
import { Separator } from "./ui/separator";
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
import { ContactButton } from "./ContactButton";
|
||||
---
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
import SinglePage from "../layouts/SinglePage.astro";
|
||||
import { getLangFromUrl, useTranslations } from "../i18n/utils";
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
import { ThemeSelector } from "./ThemeSelector"
|
||||
import NavbarSkeleton from "./NavbarSkeleton.astro";
|
||||
import { LangSwitcher } from "./LangSwitcher";
|
||||
|
@ -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
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
import SinglePostCard from "./SinglePostCard.astro";
|
||||
|
||||
export const prerender = true;
|
||||
const { filteredPosts } = Astro.props;
|
||||
---
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
import SinglePage from "../layouts/SinglePage.astro";
|
||||
import { ShowcaseTabs } from "./ShowcaseTabs.jsx";
|
||||
export const prerender = true;
|
||||
---
|
||||
|
||||
<SinglePage>
|
||||
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
export const prerender = true;
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
import { Image } from "astro:assets";
|
||||
export const prerender = true;
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
|
Reference in New Issue
Block a user