omnichannel-next/next.config.mjs
2024-08-08 15:50:52 +07:00

30 lines
1.0 KiB
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
images: {
loader: "custom",
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
// remotePatterns: [
// {
// protocol: 'https',
// hostname: 'sam-kalteng-api.basys.co.id',
// port: '',
// pathname: '/images/**',
// },
// ],
},
transpilePackages: ["next-image-export-optimizer"],
env: {
nextImageExportOptimizer_imageFolderPath: "public",
nextImageExportOptimizer_exportFolderPath: "out",
nextImageExportOptimizer_quality: "75",
nextImageExportOptimizer_storePicturesInWEBP: "true",
nextImageExportOptimizer_exportFolderName: "nextImageExportOptimizer",
nextImageExportOptimizer_generateAndUseBlurImages: "true",
nextImageExportOptimizer_remoteImageCacheTTL: "0",
},
};
export default nextConfig;