Skip to content

Commit c2b2d0b

Browse files
committed
chore(db): seed placeholder photos per mosque fixture
Deterministic picsum.photos URLs (3 per mosque) keep a fresh db:seed visually complete; swap for curated imagery before launch.
1 parent 6bc106a commit c2b2d0b

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

packages/db/src/seed.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ type Fixture = {
2323
events?: { title: string; when: string; by?: string }[];
2424
};
2525

26+
// Placeholder gallery via picsum.photos — deterministic seeds keep a mosque's
27+
// images consistent across seed runs. Swap for curated Wikimedia/R2 URLs
28+
// before launch.
29+
function placeholderPhotos(id: string, count = 3): string[] {
30+
return Array.from(
31+
{ length: count },
32+
(_, i) => `https://picsum.photos/seed/${id}-${i + 1}/1200/800`,
33+
);
34+
}
35+
2636
const DHAKA_FIXTURES: Fixture[] = [
2737
{
2838
id: "m1",
@@ -199,7 +209,7 @@ async function main() {
199209
open: fx.open,
200210
tags: fx.tags,
201211
facilities: fx.facilities,
202-
photos: [],
212+
photos: placeholderPhotos(fx.id),
203213
status: "approved",
204214
})
205215
.onConflictDoNothing();

0 commit comments

Comments
 (0)