I recently encountered an issue with my NextJs project. While using the NextJs Image Component for images, everything worked perfectly fine when running locally. However, after deploying the project on Digital Ocean, all the images served through the Next-Image-Component stopped working.
The error message I received is a "Network Tab error" which you can view here.
Despite trying to import the images using both relative and absolute paths with module imports, nothing seems to fix the issue. Interestingly, when I deployed the same project on Vercel, all the images displayed correctly without any problems. My team prefers the project to be deployed on Digital Ocean, so I'm currently seeking a solution for this issue.
I have contacted the support team at Digital Ocean but have yet to receive a response after several days of waiting. It's worth noting that images served traditionally with the img tag or through the MUI avatar component are functioning properly.
If anyone has faced a similar problem or has any ideas on how to resolve this specific issue on Digital Ocean, please share your insights. Thank you!