Skip to content

Commit

Permalink
fix: prerender
Browse files Browse the repository at this point in the history
  • Loading branch information
jouwdan committed May 4, 2024
1 parent 83a71d6 commit 7835ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
export const prerender = true;
import '../app.pcss';
import '@fontsource-variable/bricolage-grotesque';
import { ModeWatcher, toggleMode } from 'mode-watcher';
Expand Down
2 changes: 2 additions & 0 deletions src/routes/api/posts/[amount]/+server.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { json } from '@sveltejs/kit';

export const prerender = true;

const fetchPosts = async () => {
const allPostFiles = import.meta.glob('$lib/blog/*.md');

Expand Down

0 comments on commit 7835ed9

Please sign in to comment.