added cache for homepage

This commit is contained in:
mauro 🤙
2024-08-27 11:46:43 +00:00
parent 530f69cd6c
commit 76fae0a4fc

View File

@@ -17,6 +17,19 @@ const nextConfig = {
compiler: { compiler: {
styledComponents: true, styledComponents: true,
}, },
async headers() {
return [
{
source: "/",
headers: [
{
key: "Cache-Control",
value: "s-maxage=1, stale-while-revalidate=59",
},
],
},
]
}
}; };
export default nextConfig; export default nextConfig;