fix: disable api cache for real-time data

This commit is contained in:
root 2026-02-26 12:59:01 +00:00
parent c972b8aab8
commit fe69449783

View File

@ -9,6 +9,16 @@ const nextConfig: NextConfig = {
}, },
]; ];
}, },
async headers() {
return [
{
source: "/api/:path*",
headers: [
{ key: "Cache-Control", value: "no-store, max-age=0" },
],
},
];
},
}; };
export default nextConfig; export default nextConfig;