--- import ProposeModal from "../components/ProposeModal.astro"; import SiteNav from "../components/SiteNav.astro"; import LevelToggle from "../components/LevelToggle.astro"; import BuildStamp from "../components/BuildStamp.astro"; import SidePanel from "../components/SidePanel.astro"; import "../styles/global.css"; import "../styles/panel.css"; const { title, editionLabel, editionKey, statusLabel, statusKey, level, version, } = Astro.props; const lvl = level ?? 1; const canonical = Astro.site ? new URL(Astro.url.pathname, Astro.site).href : Astro.url.href; const IS_DEV = import.meta.env.DEV; const GITEA_BASE = import.meta.env.PUBLIC_GITEA_BASE ?? ""; const GITEA_OWNER = import.meta.env.PUBLIC_GITEA_OWNER ?? ""; const GITEA_REPO = import.meta.env.PUBLIC_GITEA_REPO ?? ""; // ✅ OPTIONNEL : bridge serveur (proxy same-origin) const ISSUE_BRIDGE_PATH = import.meta.env.PUBLIC_ISSUE_BRIDGE_PATH ?? ""; // ✅ Auth whoami (same-origin) — configurable, antifragile en dev const WHOAMI_PATH = import.meta.env.PUBLIC_WHOAMI_PATH ?? "/_auth/whoami"; // Par défaut: en DEV local on SKIP pour éviter le spam 404. // Pour tester l’auth en dev: export PUBLIC_WHOAMI_IN_DEV=1 const WHOAMI_IN_DEV = (import.meta.env.PUBLIC_WHOAMI_IN_DEV ?? "") === "1"; const WHOAMI_FORCE_LOCALHOST = (import.meta.env.PUBLIC_WHOAMI_FORCE_LOCALHOST ?? "") === "1"; --- {title ? `${title} — Archicratie` : "Archicratie"} {/* ✅ BOOT EARLY : SidePanel dépend de ces globals. */}
Édition : {editionLabel} Statut : {statusLabel} Version : {version}