Skip to content

Commit 5c0d57b

Browse files
committed
add 7d minimumCacheTTL on image optimization
1 parent 73ea188 commit 5c0d57b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ const nextConfig = {
3333
hostname: "**",
3434
},
3535
],
36+
// Cache each optimized image variant for 7 days (default is 60s, which
37+
// causes constant re-optimization invocations on Vercel).
38+
minimumCacheTTL: 60 * 60 * 24 * 7,
3639
},
3740

3841
webpack(config) {

0 commit comments

Comments
 (0)