set a minimum cache ttl for cached next.js images

This commit is contained in:
2026-06-22 00:07:46 +02:00
parent 5d5f0879c2
commit f9aeebfca6
+1
View File
@@ -17,6 +17,7 @@ const nextConfig = {
}, },
], ],
formats: ["image/avif", "image/webp"], formats: ["image/avif", "image/webp"],
minimumCacheTTL: 7 * 24 * 60 * 60, // 7 days
dangerouslyAllowLocalIP: process.env.NODE_ENV === "development", dangerouslyAllowLocalIP: process.env.NODE_ENV === "development",
}, },
turbopack: { turbopack: {