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.
MIT License
439 stars 52 forks source link

Can't optimize two different path #196

Closed chaveamin closed 8 months ago

chaveamin commented 8 months ago

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

Niels-IO commented 8 months ago

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