From 17abe0182dd5b93d10eb879e06479493765dc46a Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Sat, 31 Jan 2026 15:53:36 +0100 Subject: [PATCH] trying server data fetch --- src/routes/projects/projectn5/{+page.ts => +page.server.ts} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename src/routes/projects/projectn5/{+page.ts => +page.server.ts} (84%) diff --git a/src/routes/projects/projectn5/+page.ts b/src/routes/projects/projectn5/+page.server.ts similarity index 84% rename from src/routes/projects/projectn5/+page.ts rename to src/routes/projects/projectn5/+page.server.ts index 46e1558..26c197d 100644 --- a/src/routes/projects/projectn5/+page.ts +++ b/src/routes/projects/projectn5/+page.server.ts @@ -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,