Add import in getImage to fix error
This commit is contained in:
@ -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"
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user