diff --git a/web/src/components/photos/carousel.astro b/web/src/components/photos/carousel.astro index a0ab12c..863c8be 100644 --- a/web/src/components/photos/carousel.astro +++ b/web/src/components/photos/carousel.astro @@ -1,6 +1,5 @@ --- import { authPB } from "src/utils/pocketbase"; -import type { RecordModel } from 'pocketbase' // export const prerender = false @@ -8,6 +7,10 @@ const pb = await authPB() const photos = await pb.collection('photos').getFullList({ sort: '-created' }) + +const photoLinks = await Promise.all( + photos.map(p => pb.files.getURL(p, p.image)) +) ---