chore(ops): strip redundant force-dynamic and probe Redis in ops health
CI / check (push) Successful in 25s
CI / release (push) Skipped
CI / deploy (push) Successful in 1m8s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-30 21:33:40 +02:00
1 parent 3e584aadaf
commit 3ac5d6f4f6
60 files changed
+95 -114

No files matched your search

+18 -2
View File
@@ -17,8 +17,6 @@ import { prisma } from "@/lib/prisma";
import { siteSettings } from "@/lib/services/site-settings";
import { CommandocentrumControls } from "./commandocentrum-controls";
export const dynamic = "force-dynamic";
function decodeStacktrace(raw: unknown): string {
if (raw == null) return "";
try {
@@ -66,6 +64,7 @@ export default async function CommandoCentrum() {
]);
const dbOk = health.dbOk;
const redisOk = health.redisOk;
const emulatorOnline = health.emulatorOk;
const onlineCount = onlineRoster.count;
const onlineUsers = onlineRoster.users;
@@ -175,6 +174,23 @@ export default async function CommandoCentrum() {
detail={dbOk ? t("connectionHealthy") : t("unreachable")}
state={dbOk ? "ok" : "danger"}
/>
<DiagnosticRow
label="Redis"
detail={
redisOk === true
? "PONG"
: redisOk === false
? "Unreachable"
: "REDIS_URL not configured"
}
state={
redisOk === true
? "ok"
: redisOk === false
? "danger"
: "warn"
}
/>
<DiagnosticRow
label={t("emulatorRcon")}
detail={