From 1053615dd96dca15434a4800757ff57557acd057 Mon Sep 17 00:00:00 2001 From: Steven Date: Mon, 21 Oct 2024 15:47:35 -0400 Subject: [PATCH] fix: change `headers` to `images.minimumCacheTTL` --- next.config.mjs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/next.config.mjs b/next.config.mjs index 22eb526..e7d7f35 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -9,20 +9,8 @@ const nextConfig = { eslint: { ignoreDuringBuilds: true, }, - async headers() { - return [ - { - source: "/_next/image", // Match the path for Next.js image requests - headers: [ - { - key: "Cache-Control", - value: "public, immutable, max-age=31536000", // Mark as immutable and set long caching - }, - ], - }, - ]; - }, images: { + minimumCacheTTL: 31536000, remotePatterns: [ { protocol: "https",