trying server data fetch
This commit is contained in:
@@ -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,
|
||||
Reference in New Issue
Block a user