26 lines
967 B
JavaScript
26 lines
967 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "export",
|
|
trailingSlash: true,
|
|
skipTrailingSlashRedirect: true,
|
|
images: {
|
|
loader: "custom",
|
|
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
|
|
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
|
|
},
|
|
transpilePackages: ["next-image-export-optimizer"],
|
|
env: {
|
|
nextImageExportOptimizer_imageFolderPath: "public/content",
|
|
nextImageExportOptimizer_exportFolderPath: "out",
|
|
nextImageExportOptimizer_quality: 75,
|
|
nextImageExportOptimizer_storePicturesInWEBP: false,
|
|
nextImageExportOptimizer_exportFolderName: "nextImageExportOptimizer",
|
|
|
|
// If you do not want to use blurry placeholder images, then you can set
|
|
// nextImageExportOptimizer_generateAndUseBlurImages to false and pass
|
|
// `placeholder="empty"` to all <ExportedImage> components.
|
|
nextImageExportOptimizer_generateAndUseBlurImages: true,
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|