Next.js Discord

Discord Forum

Are <Image /> loaded on client client or server ?

Answered
Eurasian Blackbird posted this in #help-forum
Open in Discord
Eurasian BlackbirdOP
Let's say I have a component that looks like this :
// server component
export default async function foo() {
  const imgUrlOnCDN = await someCall()
  return <Image src={imgUrl} />
}

Will the "download" of the picture happen on the client or on the serveur (if the image url is NOT in my app directory) ?
Answered by Palomino
The client will send a request for the image
View full answer

2 Replies

Palomino
The client will send a request for the image
Answer
@Palomino The client will send a request for the image
Eurasian BlackbirdOP
perfect, thank you