Corrected the getImage() paramaters (#5040)
This commit is contained in:
parent
38fdb4ca6f
commit
c5484add6a
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue