Hi Iva Kop. Thanks for your article. It will be really helpful for many developers. 👏 I am trying to optimize all images that use on the website developed by next js. For exporting into HTML, I used the "next-optimized-images" package. It works correctly with static require (e.g: require('/src/demo.png') as your above article. But for all of the Images, I have to import images with require dynamically (e.g: const imagePath = '/src/demo.png'; require(imagePath) in a loop ). If I debug the imagePath variable its value is correct but it does not work. I know we can not use the "require" dynamically, if so is there any other way to run the package("next-optimized-images")? Could you help me or advise anything? 🙏 Thanks. Minnel.