Corrected the getImage() paramaters (#5040)

This commit is contained in:
mandar1jn 2022-10-10 17:06:55 +02:00 committed by GitHub
parent 38fdb4ca6f
commit c5484add6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -397,7 +397,7 @@ This can be helpful if you need to add preload links to a page's `<head>`.
---
import { getImage } from '@astrojs/image';
const { src } = await getImage('../assets/hero.png');
const { src } = await getImage({src: '../assets/hero.png'});
---
<html>