my data is in (src>data>popularDestinations.js) and of the form export default [ { city: 'Miami', averagePrice: 115, propertyCount: 86, imageUrl: '../images/miami.jpg', imageAlt: 'Beach in Miami' } ]
all of the images are located in (src>images)
and here is where i am calling them (src>pages>workcation.astro)
`---
import MainLayout from '../layouts/MainLayout.astro'
import logo from '../images/logo.svg'
import beach from '../images/beach-work.jpg'
import '../styles/global.css'
import popularDestinations from '../data/popularDestinations'
<MainLayout>
<div>
<h2>Popular Destinations</h2>
<p>A selection of great work-friendly cities with lots to see and explore.</p>
{
popularDestinations.map((destination, i) => {
return (
<div>
<div>
<img src={destination.imageUrl.src} alt={destination.imageAlt} />
<div>
<h3 />
<p />
<div>
<a href="" />
</div>
</div>
</div>
</div>
)
})
}
</div>
</MainLayout>
I tried it withdestination.imageUrl.srcand asdestination.imageUrland both give404 /images/malibu.jpg` etc