diff --git a/next.config.mjs b/next.config.mjs index beff912..e84c099 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -25,6 +25,19 @@ const nextConfig = { } else { return [] } + }, + async headers() { + return [ + { + source: '/api/spotify/currently-playing', + headers: [ + { + key: "Cache-Control", + value: "s-maxage=1, stale-while-revalidate=59" + } + ] + } + ] } }