drfeely.com/next.config.js

27 lines
967 B
JavaScript
Raw Normal View History

2023-07-23 14:44:58 +00:00
/** @type {import('next').NextConfig} */
2023-09-11 20:34:00 +00:00
const nextConfig = {
output: "export",
2023-10-20 19:25:25 +00:00
trailingSlash: true,
skipTrailingSlashRedirect: true,
2023-09-11 20:34:00 +00:00
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,
},
};
2023-07-23 14:44:58 +00:00
2023-07-23 22:26:35 +00:00
module.exports = nextConfig;