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.
413
stars
51
forks
source link
process.env.nextImageExportOptimizer_storePicturesInWEBP assumed to be boolean #186
The variable process.env.nextImageExportOptimizer_storePicturesInWEBP is assumed to be a boolean but it's a string. I believe that should be changed to:
On this line: https://github.com/Niels-IO/next-image-export-optimizer/blob/master/example/src/ExportedImage.tsx#L32
The variable
process.env.nextImageExportOptimizer_storePicturesInWEBP
is assumed to be a boolean but it's a string. I believe that should be changed to:Currently it doesn't seem possible to turn off the default webp format.