Niels-IO / next-image-export-optimizer

Use Next.js advanced <Image/> component with the static export functionality. Optimizes all static images in an additional step after the Next.js static export.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server side module in app directory

scottyob opened this issue · comments

Does not seem to work when using ExportedImage in the app directory without 'use client' (which I want to do because I'm dynamically loading an image)

commented

Hi @scottyob,

I am using useState, useMemo, and useRouter which are only available on the client. Is there a chance that you change the dynamic import to a string, referencing the image inside your repo? Or use remote images?