How do i deal with profile images?
Answered
WhyFencePost (Ping Reply) posted this in #help-forum
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
Take a look at docs:
https://nextjs.org/docs/app/building-your-application/optimizing/images#remote-images
Image component.Take a look at docs:
https://nextjs.org/docs/app/building-your-application/optimizing/images#remote-images
2 Replies
@WhyFencePost (Ping Reply) 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?
Turkish Van
Just use it, it's completely fine to have remote image and still use the
Take a look at docs:
https://nextjs.org/docs/app/building-your-application/optimizing/images#remote-images
Image component.Take a look at docs:
https://nextjs.org/docs/app/building-your-application/optimizing/images#remote-images
Answer
thanks