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.
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.
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.