I've deployed a fork of the current code, and everything works very quickly (it uses the Image CDN automatically, so no time is spent in the build on optimizing images at all).
(Locally if I run a usual build, I do see it takes 2.5 minutes to optimize on an Mac M2 Pro).
Great.
I also agree that if this was automatic, it would have been great, but there are pros/cons there. Some frameworks like Next.js don't *yet* have a clear adapter interface, so we detect it automatically. Having to configure things gives you much more explicit control but is more manual.
I love netlify have been using netlify to host my blog since most of its life and this wasn’t a netlify issue, this was my dissatisfaction with Astro not netlify, but I’m so glad you decided to help anyway, thanks
We're also good friends with the Astro team, so I'd try to get to the bottom of it when I can :-)
Also noting to @mk.gg - the CPU usage for image optimization (without the adapter) is pretty intense on my local machine, perhaps there's a way to throttle that.
My issue wasn’t exactly the fact that I had to add an adapter manually, the issue is that I have to use 3rd party(netlify’s) image optimizations when it’s supposed to be done by the SSG(like gatsby-plugin-image does) without running out of memory
Comments
(Locally if I run a usual build, I do see it takes 2.5 minutes to optimize on an Mac M2 Pro).
I also agree that if this was automatic, it would have been great, but there are pros/cons there. Some frameworks like Next.js don't *yet* have a clear adapter interface, so we detect it automatically. Having to configure things gives you much more explicit control but is more manual.
Also noting to @mk.gg - the CPU usage for image optimization (without the adapter) is pretty intense on my local machine, perhaps there's a way to throttle that.