Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -1,11 +1,19 @@
export const loader = async () => {
import { loadWebConfig } from "@hivegrid/config";
import type { LoaderFunctionArgs } from "react-router";
import { getWebServiceName } from "../../build-surface";
export const loader = async (args?: Pick<LoaderFunctionArgs, "request">) => {
// Keep liveness cheap: no dependency checks or database access.
const { releaseRevision, runtimeSurface } = loadWebConfig().config;
const host = runtimeSurface === "portal" && args?.request ? new URL(args.request.url).hostname.toLowerCase() : null;
return Response.json(
{
status: "ok",
service: "web",
revision: process.env.APP_REVISION || "unknown",
service: getWebServiceName(runtimeSurface),
surface: runtimeSurface,
revision: releaseRevision,
...(host ? { host } : {}),
},
{ status: 200 },
{ status: 200 }
);
};