4 ms·
This is not accurate: https://nextjs.org/docs/app/building-your-application/deploying/static-exports#image-optimization https://nextjs.org/docs/app/building-you
by leerob 2y ago
This is not accurate: https://nextjs.org/docs/app/building-your-application/deploying/static-exports#image-optimization https://nextjs.org/docs/app/building-your-application/deploy...
- littlecranky67 2y agoIn your very link you can see that you can only add a handle to a third party loader. Their built in image optimization that works in vercel does not if you static export and host elsewhere.
- leerob 2y agoIf you do a static export, you don’t have a server to optimize images. It’s just a bunch of static files. The only way to optimize the image is to point to a service through the loader. Also, the image optimization on the default Next.js server, for example deployed to a $4 VPS, also works without Vercel.
- afloatboat 2y agoNext should have the same functionality that Gatsby had when doing a static export: pre-optimised images for different breakpoints that are created at build time. That would be a truly portable solution.
- littlecranky67 2y agothat is simply not true, there are static export, 3rd party image optimizers [0] (that re-use <Image />) - just vercel does not care about theirs for static export. Also, look at how gatsby does without cloud/server hosted images. [0]: https://www.npmjs.com/package/next-image-export-optimizer https://www.npmjs.com/package/next-image-export-optimizer
- littlecranky67 2y ago"leerob" - Lee Robinson who works at vercel [0]. It would have been nice to disclose your affiliation, especially when spreading misinformation. https://leerob.com/ https://leerob.com/