function effectiveDomainFromSettings
effectiveDomainFromSettings(
customDomain: string,
bunnySubdomain: string,
customDomainLastValidated: string,
requestHost: string,
): string

The site's own domain from its settings, falling back to the host the request named: a validated custom domain wins, then the Bunny subdomain. Every absolute-URL reader shares it, so the readers cannot disagree.

Parameters

customDomain: string
bunnySubdomain: string
customDomainLastValidated: string
requestHost: string

Return Type

string

Usage

import { effectiveDomainFromSettings } from "docs/config.ts";