perf: bật tối ưu ảnh AVIF/WebP + deviceSizes cho next/image

This commit is contained in:
tuyenio
2026-06-25 09:28:21 +07:00
parent 9b7ce49f54
commit 2bd2a42dcf
+5 -1
View File
@@ -1,7 +1,11 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ images: {
formats: ["image/avif", "image/webp"],
deviceSizes: [360, 640, 768, 1024, 1280, 1536, 1920],
minimumCacheTTL: 2678400,
},
}; };
export default nextConfig; export default nextConfig;