UNPKG

@paroicms/server

Version:
15 lines 643 B
import { loadRoutingCluster } from "../connector/db-init/load-routing-cluster.queries.js"; import { getActiveSiteContext } from "./site-context.js"; export async function reloadHomeRoutingCluster(fqdn) { const siteContext = getActiveSiteContext(fqdn, { returnsUndef: true }); if (siteContext?.status !== "ready") return; const { siteNodeId, homeRoutingCluster } = siteContext; siteContext.homeRoutingCluster = await loadRoutingCluster(siteContext, { kind: "home", nodeId: homeRoutingCluster.nodeId, typeName: "home", siteNodeId, }); } //# sourceMappingURL=refresh-site-context.js.map