Next.js Discord

Discord Forum

IKImage "use client"

Unanswered
American black bear posted this in #help-forum
Open in Discord
American black bearOP
i have a simple product server compoent that has to render a cover image

i went for the imagekit solution
smt like this
    <IKImage
      path="/default-image.jpg"
      urlEndpoint={process.env.NEXT_PUBLIC_URL_ENDPOINT}
      alt="product cover"
      loading="lazy"
      lqip={{ active: true }}
    />

but it says i have to put "use client"

i dont wanna break the ssr
what am i supposed to do?

0 Replies