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

Can't optimize two different path

chaveamin opened this issue · comments

commented

I have 2 main directories for my Images public/products & src/images Considering that the package can't specify two directory. src/images folder won't be optimized and can't be found by browser.
Screenshot 2024-01-07 193827

You can statically import images that reside outside of the specified image folder. That will solve this problem.