From 6daf548688fff96c3b73266fe564ff116e4cdac6 Mon Sep 17 00:00:00 2001 From: Happydev <81974850+MoustaphaDev@users.noreply.github.com> Date: Tue, 31 Jan 2023 17:50:17 +0100 Subject: [PATCH] Correct usage of `getImage` function (#6068) --- packages/integrations/image/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md index 213d9d3bb..e33520239 100644 --- a/packages/integrations/image/README.md +++ b/packages/integrations/image/README.md @@ -422,7 +422,10 @@ This can be helpful if you need to add preload links to a page's ``. --- import { getImage } from '@astrojs/image'; -const { src } = await getImage({src: '../assets/hero.png'}); +const { src } = await getImage({ + src: import('../assets/hero.png'), + alt: "My hero image" + }); ---