Add import in getImage to fix error

This commit is contained in:
prototypa
2022-08-13 14:36:34 -04:00
parent ac46501804
commit f4a4200e0e

View File

@ -7,7 +7,7 @@ import Footer from "~/components/astro/footers/BasicFooter.astro";
import { getImage } from "@astrojs/image"; import { getImage } from "@astrojs/image";
const { src: defaultImage } = await getImage({ const { src: defaultImage } = await getImage({
src: "~/assets/images/hero.jpg", src: import("~/assets/images/hero.jpg"),
width: 768, width: 768,
aspectRatio: "16:9" aspectRatio: "16:9"
}) })