Don't work image optimization in nextjs project. Locally it works

  • I want to use avif or webp formats for images. But it doesn’t work after deploy on Netlify. Locally it works.

Could you mention what happens when you say it doesn’t work?

it doesn’t format to avif or webp

Thanks for sharing that. Can you please share your project repo and your latest build log? This will help us look into the details further.

I have the same issue with format image/avif.
Here my website: link
Please open console to see error.


Did you check: