does Next's Image component image optimization only work if the images are on the server itself?
Answered
Orinoco Crocodile posted this in #help-forum
Orinoco CrocodileOP
so I saw that Next has its own
Image component that does a bunch of image optimization. Do you only get those benefits if you store the images on the server itself?Answered by joulev
no. it can be external images hosted elsewhere, though [you have to explicitly configure it](https://nextjs.org/docs/app/api-reference/components/image#remotepatterns) to accept the URL pattern you want
4 Replies
@Orinoco Crocodile so I saw that Next has its own `Image` component that does a bunch of image optimization. Do you only get those benefits if you store the images on the server itself?
no. it can be external images hosted elsewhere, though [you have to explicitly configure it](https://nextjs.org/docs/app/api-reference/components/image#remotepatterns) to accept the URL pattern you want
Answer
Orinoco CrocodileOP
is it better if it's hosted locally?
as far as <Image> is concerned, no
Orinoco CrocodileOP
cool, thank you 🙂