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
This commit is contained in:
@@ -108,7 +108,14 @@ async function seed() {
|
|||||||
})
|
})
|
||||||
if (scheduleError) throw scheduleError
|
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.`)
|
console.log(`Seeded ${products.length} products, ${services.length} services, and the default schedule.`)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user