Extract a hostname from a URL string, returning undefined if invalid. Commonly used in
URL string (e.g., 'https://api.example.com/v1/')
hostname string or undefined
hostname filters for dynamic API base URLs.
Extract a hostname from a URL string, returning undefined if invalid. Commonly used in