Next Image not Resizing Images In Production, Self Hosted
Unanswered
Rex posted this in #help-forum
RexOP
Hi,
I'm running Nextjs in docker on a self-hosted Digital Ocean instance. I've installed Sharp as a npm package in my project but Image isn't resizing my images for mobile (it works fine in dev).
Does anyone have any insight as to what might be the issue please?
I'm running Nextjs in docker on a self-hosted Digital Ocean instance. I've installed Sharp as a npm package in my project but Image isn't resizing my images for mobile (it works fine in dev).
Does anyone have any insight as to what might be the issue please?
<Image
src="/images/category/holosun-red-dot.webp"
width={400}
height={400}
alt="Holosun Red Dot Sight"
sizes="(min-width: 200px) and (max-width: 800px) 100px, (min-width: 800px) 400px"
/>1 Reply
RexOP
Here's a couple of images showing my issue.