Skip to content

Commit 84252c1

Browse files
committed
prerender attempt
1 parent 20fdde6 commit 84252c1

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/routes/+layout.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script>
2+
import "../app.css";
23
import Header from "$lib/components/Header.svelte";
34
import Footer from "$lib/components/Footer.svelte";
45
import { theme } from "$lib/stores/theme";
@@ -13,7 +14,11 @@
1314
}
1415
</script>
1516

16-
<div class="min-h-screen bg-ctp-crust text-ctp-text" class:font-sans={$language === 'en'} class:font-hebrew={$language === 'he'}>
17+
<div
18+
class="min-h-screen bg-ctp-crust text-ctp-text"
19+
class:font-sans={$language === "en"}
20+
class:font-hebrew={$language === "he"}
21+
>
1722
<div
1823
class="container mx-auto max-w-5xl bg-ctp-base p-4 shadow-2xl shadow-ctp-crust"
1924
>

svelte.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ const config = {
1515
paths: {
1616
base: process.env.BASE_PATH,
1717
},
18+
prerender: {
19+
entries: ["*"],
20+
handleHttpError: "warn",
21+
},
1822
},
1923
};
2024

0 commit comments

Comments
 (0)