22 lines
586 B
TypeScript
22 lines
586 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
// AVIF didahulukan — ~30% lebih kecil dari WebP, didukung browser modern.
|
|
formats: ["image/avif", "image/webp"],
|
|
// 75 = default (kartu/thumbnail); 90 = lightbox foto trip ukuran penuh.
|
|
qualities: [75, 90],
|
|
// Cache hasil optimasi minimal 1 hari supaya tidak re-optimize tiap request.
|
|
minimumCacheTTL: 86400,
|
|
remotePatterns: [
|
|
{
|
|
protocol: "https",
|
|
hostname: "**",
|
|
},
|
|
],
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|