Open floyare opened 1 year ago
I've also been struggling with this in the last hour, and I think it's Vercel's fault. I ended up not using astro-imagetools and moved my images into a /public folder in root and then used the img tag directly.
Something like:
import { Image } from 'astro:assets';
---
<img src={`/images/${proj.img_link}`} alt={proj.name}/>
There's a section on img and public/ in the Astro docs: https://docs.astro.build/en/guides/images/
It was pretty frustrating, hope this helps!
I wanted to use astro-imagetools with
output: "server"
mode and vercel adapter to deploy it to vercel but whenever I'm entering the website the serverless function crashes with this specific error:The problem does not appear in dev only in production deployed in vercel.