set a minimum cache ttl for cached next.js images
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user