next/image serves the original file if sharp isn't installed
When sharp is missing in Next 14 apps, next/image serves the original file without optimization. Learn how to resolve this issue.
In a Next 14 app, when the sharp library is missing, next/image serves the original file for every request, resulting in no optimization. This can be identified by checking if the content type returns the source format and if the byte size remains the same across different widths. The solution involves installing sharp correctly in the runtime stage.
This synthesis was produced from its source by AI; there is no human editor or manual review step. How we work