Example
I have AppImage.astro
component as below
---
import { Image } from 'astro:assets';
---
<Image src=".jpg" alt="A bird." inferSize />
Now when i generate build i want to save images in build and serve images from there.
Edit
Answer
export default defineConfig({
image: {
remotePatterns: [{
protocol: 'https',
hostname: 'example', // your image source domain
}],
}
});