Skip to content

Commit

Permalink
pre render some static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
haffi96 committed Oct 9, 2023
1 parent 2710387 commit 87912fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/components/PageNavButtons.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
export const prerender = true;
const { prevPage, nextPage } = Astro.props;
---

Expand Down
2 changes: 2 additions & 0 deletions ui/src/components/SideNav.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
export const prerender = true;
import Sidebar from "./SideBar.astro";
import MobileSideBar from "./MobileSideBar.tsx";
import type { Subscription } from "../types";
Expand Down
2 changes: 2 additions & 0 deletions ui/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
export const prerender = true;
import SideNav from "@components/SideNav.astro";
import "../styles/globals.css";
import { ViewTransitions } from "astro:transitions";
Expand Down
2 changes: 2 additions & 0 deletions ui/src/pages/login.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
export const prerender = true;
import { SignIn } from "auth-astro/components";
import ThemeButton from "@components/ThemeToggle";
import { ViewTransitions } from "astro:transitions";
Expand Down

0 comments on commit 87912fb

Please sign in to comment.