Improve page load times and rendering

This commit is contained in:
adilallo
2026-05-26 06:59:52 -06:00
parent 6b45a2e5d0
commit 3be188a3cc
29 changed files with 467 additions and 176 deletions
+11 -1
View File
@@ -1,7 +1,17 @@
import type { ReactNode } from "react";
import ConditionalNavigation from "../components/navigation/ConditionalNavigation";
// Reads the session for admin chrome (matches the HttpOnly cookie on first
// HTML response). Scoped here so `(marketing)` can render statically.
export const dynamic = "force-dynamic";
// Operator/admin dashboards (e.g. `/monitor`) intentionally render without the
// public marketing footer. Auth/access is enforced upstream.
export default function AdminLayout({ children }: { children: ReactNode }) {
return <main className="flex-1">{children}</main>;
return (
<>
<ConditionalNavigation />
<main className="flex-1">{children}</main>
</>
);
}