Next.js Image Component scenarios to Display WebP Format Images Correctly
I'm relatively new to this, so bear with me. I'm experiencing an scenario with the Next.js Image component (v12.2.0) where WebP images are not rendering correctly on deployment. While developing locally, everything works as expected, but once I deploy to Vercel, the images appear distorted or unexpected result to load entirely. I verified that the images exist in the appropriate public directory and have the proper formats. Hereβs a snippet of how Iβm using the Image component: ```javascript import Image from 'next/image'; const MyComponent = () => { return ( <div> <Image src='/images/example.webp' alt='Example Image' width={500} height={300} quality={100} /> </div> ); }; ``` Upon checking the network tab, I see a 404 behavior for the WebP images after deployment, despite them being present in the build output. I tried different approaches such as re-running `next build` and clearing the cache, but the scenario continues. I also ensured that my image loader settings are properly configured in `next.config.js`: ```javascript module.exports = { images: { domains: ['your-domain.com'], formats: ['image/webp'], }, }; ``` Is there something else I might be missing, or any specific settings needed for WebP images to work correctly in production with Next.js? Any insights would be greatly appreciated.