From 1661c24545a3e5db08a80847050a0db94261dc72 Mon Sep 17 00:00:00 2001 From: belviskhoremk Date: Thu, 13 Aug 2026 09:53:03 +0200 Subject: [PATCH] fix: include site-content and testimonial images in seed script upload Extended uploadImages() call to include the 4 image files referenced by the site_content and testimonials migrations: about/mira-portrait.jpg and testimonials/{amara,keisha,nadia}.jpg. These paths are seeded in the migration but were not being uploaded to the salon-images bucket, causing broken image links on deploy. Verified files exist in public/ and match migration seed paths. Claude-Session: https://claude.ai/code/session_01NhxA4npAXAxmCDEJt6kxSH --- scripts/seed.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/seed.ts b/scripts/seed.ts index 41fe012..0ba5a31 100644 --- a/scripts/seed.ts +++ b/scripts/seed.ts @@ -108,7 +108,14 @@ async function seed() { }) if (scheduleError) throw scheduleError - await uploadImages([...products.map((p) => p.image), ...services.map((s) => s.image)]) + await uploadImages([ + ...products.map((p) => p.image), + ...services.map((s) => s.image), + '/about/mira-portrait.jpg', + '/testimonials/amara.jpg', + '/testimonials/keisha.jpg', + '/testimonials/nadia.jpg', + ]) console.log(`Seeded ${products.length} products, ${services.length} services, and the default schedule.`) }