fix(admin-ui): force-dynamic routes so DEMO/API env is not CDN-cached stale

Co-Authored-By: Paperclip <[email protected]>
This commit is contained in:
1sonhadorandPaperclip committed 2026-03-23 21:13:46 +00:00
1 parent b95aee6f85
commit 4a32bb3b0c
3 files changed
+7

No files matched your search

+2
View File
@@ -8,6 +8,8 @@ import { StateBadge } from "@/components/StateBadge";
import { formatDateTime } from "@/lib/format";
import { fetchIncidentDetail } from "@/lib/incidents-data";
export const dynamic = "force-dynamic";
export default async function IncidentDetailPage(props: { params: Promise<{ id: string }> }) {
const { id } = await props.params;
const _decoded = decodeURIComponent(id);
+2
View File
@@ -7,6 +7,8 @@ import { formatDateTime } from "@/lib/format";
import { fetchIncidentList } from "@/lib/incidents-data";
import type { IncidentState, Severity } from "@/lib/types";
export const dynamic = "force-dynamic";
type SearchParams = Promise<Record<string, string | string[] | undefined>>;
const _states: IncidentState[] = ["open", "investigating", "resolved", "ignored"];
+3
View File
@@ -1,5 +1,8 @@
import Link from "next/link";
import { AppShell } from "@/components/AppShell";
/** Respect runtime env (e.g. ERROR_REPORTING_UI_DEMO) — avoid stale prerender behind CDN. */
export const dynamic = "force-dynamic";
import { DataAlert } from "@/components/DataAlert";
import { KpiCard } from "@/components/KpiCard";
import { computeKpis, fetchIncidentList } from "@/lib/incidents-data";