Skip to content

Commit 64d13b4

Browse files
authored
Merge pull request #628 from PotLock/fix/vercel-high-invocations
Fix/vercel high invocations
2 parents 5d38375 + 5c0d57b commit 64d13b4

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)