diff --git a/next.config.ts b/next.config.ts index 7218a2d..a7bfbf2 100644 --- a/next.config.ts +++ b/next.config.ts @@ -133,7 +133,11 @@ const nextConfig: NextConfig = { headers: [ { key: "Cache-Control", - value: "public, max-age=31536000, immutable", + // In dev, aggressive caching breaks HMR and can brick a tab with stale chunks. + value: + process.env.NODE_ENV === "production" + ? "public, max-age=31536000, immutable" + : "no-store", }, ], },