ig.rizaldy.club/next.config.js

20 lines
700 B
JavaScript

module.exports = {
output: "export",
images: {
loader: "custom",
deviceSizes: [1080, 1200, 1920],
imageSizes: [128, 256, 384],
},
transpilePackages: ["next-image-export-optimizer"],
env: {
COMMIT_SHORT_SHA: process.env.COMMIT_SHORT_SHA || "HEAD",
nextImageExportOptimizer_imageFolderPath: "public/images",
nextImageExportOptimizer_exportFolderPath: "out",
nextImageExportOptimizer_quality: "90",
nextImageExportOptimizer_storePicturesInWEBP: "true",
nextImageExportOptimizer_exportFolderName: "nextImageExportOptimizer",
nextImageExportOptimizer_generateAndUseBlurImages: "true",
nextImageExportOptimizer_remoteImageCacheTTL: "31536000",
},
};