Usae img tag because astro Image does not render on workers

This commit is contained in:
2025-09-26 09:38:01 +02:00
parent 8daafc74c6
commit 4a3a990fe7
+2 -3
View File
@@ -1,5 +1,4 @@
---
import { Image } from "astro:assets";
import heroImage from "./hero.png";
const { t } = Astro.locals;
@@ -36,8 +35,8 @@ const { t } = Astro.locals;
<!-- Hero Illustration -->
<div class="relative flex justify-center lg:justify-end">
<div class="relative w-full max-w-lg">
<Image
src={heroImage}
<img
src={heroImage.src}
alt="Hero Illustration"
class="h-auto w-full scale-120"
loading="eager"