Skip to content

matchSite

matchSite(sites, hostname): SiteSummary | undefined

Exactly one published site → that site (no host mapping needed; the local-development and single-site case). Otherwise the site whose hosts contains hostname (case-insensitive, hostname only — the server stores Host.Host, port-less). undefined when nothing matches.

readonly SiteSummary[]

string | undefined

SiteSummary | undefined