Skip to content

Commit

Permalink
Corrected the getImage() paramaters (#5040)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar1jn committed Oct 10, 2022
1 parent 38fdb4c commit c5484ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c5484ad

Please sign in to comment.