--- import { metaData, ENVIRONMENT, WHITELABELS } 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); ---