trying server data fetch

This commit is contained in:
2026-01-31 15:53:36 +01:00
parent 961c6ed372
commit 17abe0182d

View File

@@ -1,9 +1,9 @@
import Gallery, { type GalleryEntry } from "$lib/lists/gallery.svelte";
import { posts, type DevlogPost } from "./devlog/posts";
import type { PageLoad } from './$types';
import type { PageServerLoad } from './$types';
export const load: PageLoad = ({ params }) => {
export const load: PageServerLoad = ({ params }) => {
let a = posts.entries().map(mapEntries).toArray();
return {
entries: a,