From 9bc26fb9a186c0515a4f67653e104f02a1e6bee1 Mon Sep 17 00:00:00 2001 From: Ramshouriesh R Date: Sun, 23 Aug 2026 22:38:35 +0530 Subject: [PATCH] fix(web): prevent stale dashboard bundles --- web/src/app/layout.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/src/app/layout.tsx b/web/src/app/layout.tsx index 8aa1ddf9..39c6e644 100644 --- a/web/src/app/layout.tsx +++ b/web/src/app/layout.tsx @@ -1,6 +1,12 @@ import type { Metadata } from "next"; import "./globals.css"; +// The dashboard is an authenticated control plane, not a static document. +// Rendering it dynamically makes Next serve the HTML with private/no-store +// semantics, so a browser or intermediary cannot pin an old client bundle +// after a deployment. Hashed files under /_next/static remain cacheable. +export const dynamic = "force-dynamic"; + export const metadata: Metadata = { title: "ShellFleet", description: "Manage systemd services and Docker workloads across your fleet from one terminal-flavored dashboard.",