UNPKG

@fly/cdn

Version:
19 lines (18 loc) 644 B
/** * Settings for backends that use subdomains */ export interface SubdomainOptions { [k: string]: string | undefined; /** Backend's subdomain: <subdomain>.example.com */ subdomain: string; /** Subdirectory site is served from (if any) */ directory?: string; /** If the Backend expects a specific x-forwarded-host, we need that to proxy properly */ hostname?: string; } /** @hidden */ export declare function optionNormalizer(map?: { [k: string]: string | false | undefined; }): (input: unknown) => SubdomainOptions; /** @hidden */ export declare const normalizeOptions: (input: unknown) => SubdomainOptions;