We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc106a commit c2b2d0bCopy full SHA for c2b2d0b
1 file changed
packages/db/src/seed.ts
@@ -23,6 +23,16 @@ type Fixture = {
23
events?: { title: string; when: string; by?: string }[];
24
};
25
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
+
36
const DHAKA_FIXTURES: Fixture[] = [
37
{
38
id: "m1",
@@ -199,7 +209,7 @@ async function main() {
199
209
open: fx.open,
200
210
tags: fx.tags,
201
211
facilities: fx.facilities,
202
- photos: [],
212
+ photos: placeholderPhotos(fx.id),
203
213
status: "approved",
204
214
})
205
215
.onConflictDoNothing();
0 commit comments