Next.js Image Optimization scenarios on Static Export with Custom Domain
I'm trying to use Next.js's built-in Image component for optimizing images in my application, but I've run into an scenario when exporting my site statically with a custom domain. When I attempt to build my project using `next export`, I get the following behavior: ``` behavior: Image with src "http://mycustomdomain.com/image.jpg" want to be optimized because it is not an allowed domain. Please add it to your "images.domains" in next.config.js. ``` I've already configured my `next.config.js` file like this: ```javascript module.exports = { images: { domains: ['mycustomdomain.com'], }, }; ``` Despite this, the behavior continues during the build process. I've confirmed that the domain name is correct and that other static assets are loading without scenario. I’ve also tried clearing the `.next` cache and rebuilding the application, but nothing seems to work. Additionally, I am using Next.js version 12.3.1, and my Node.js version is 16.14.0. I read that static exports have some limitations with the Image component, but I thought whitelisting the domain would resolve this scenario. Can anyone suggest what might be going wrong or how I can troubleshoot this further? Any help would be greatly appreciated!