Next.js Discord

Discord Forum

How do i deal with profile images?

Answered
WhyFencePost (Ping Reply) posted this in #help-forum
Open in Discord
The next.js image tag wants an image that is in the public folder, but I need to be able to get the image from a server. Therefore I will just have a url with a diffrent domain, and I need to use that image. Is there any way to do that while still preserving the other good properties of a next.js Image tag?
Answered by Turkish Van
Just use it, it's completely fine to have remote image and still use the Image component.

Take a look at docs:
https://nextjs.org/docs/app/building-your-application/optimizing/images#remote-images
View full answer

2 Replies