From 5c0d57b192cd42c30bf97fe01c679ad5c76a5e92 Mon Sep 17 00:00:00 2001 From: aunali8812 Date: Tue, 19 May 2026 23:16:45 +0500 Subject: [PATCH] add 7d minimumCacheTTL on image optimization --- next.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/next.config.js b/next.config.js index 1e64b198..012bf25d 100644 --- a/next.config.js +++ b/next.config.js @@ -33,6 +33,9 @@ const nextConfig = { hostname: "**", }, ], + // Cache each optimized image variant for 7 days (default is 60s, which + // causes constant re-optimization invocations on Vercel). + minimumCacheTTL: 60 * 60 * 24 * 7, }, webpack(config) {