diff --git a/next.config.mjs b/next.config.mjs index 4678774..0f082bf 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -1,4 +1,26 @@ /** @type {import('next').NextConfig} */ -const nextConfig = {}; +const nextConfig = { + async headers() { + return [ + { + source: '/cast/*', + headers: [ + { + key: 'Cache-Control', + value: 's-maxage=999999, stale-while-revalidate=999999', + }, + { + key: 'CDN-Cache-Control', + value: 'max-age=999999', + }, + { + key: 'Vercel-CDN-Cache-Control', + value: 'max-age=999999' + } + ], + }, + ]; + }, +}; export default nextConfig;