--- import { metaData, ENVIRONMENT, WHITELABELS, MAJOR_VERSION, RELEASE_FLAG } from "../config"; import RandomMsg from "../components/RandomMsg"; import { buildTime, buildNumber } from '../utils/buildTime.js'; const YEAR = new Date().getFullYear(); const hostHeader = Astro.request?.headers?.get('host') || ''; const host = hostHeader.split(':')[0]; import { getSubsiteByHost } from '../utils/subsites.js'; import { getSubsiteByPath } from '../utils/subsites.js'; const detected = getSubsiteByHost(host) ?? getSubsiteByPath(Astro.url.pathname) ?? null; const isReq = detected?.short === 'req'; const whitelabel = WHITELABELS[host] ?? (isReq ? WHITELABELS[detected.host] : null); const versionDisplay = `v${MAJOR_VERSION}${RELEASE_FLAG ? `-${RELEASE_FLAG}` : ''}`; const envBadge = ENVIRONMENT === 'Dev' ? 'DEV' : null; ---