From fe69449783c7a8bf91c6bba84a27b35521cd2af1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Feb 2026 12:59:01 +0000 Subject: [PATCH] fix: disable api cache for real-time data --- frontend/next.config.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/next.config.ts b/frontend/next.config.ts index f649806..fe38822 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -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;