{"version":"2.1.193","anchor":"github-enterprise-host-detection","canonical_anchor":"github-enterprise-host-detection","heading":"GitHub Enterprise Host Detection","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.193\/e\/github-enterprise-host-detection","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.193","markdown":"### GitHub Enterprise Host Detection\n\n**What**\n\nGitHub Enterprise Server instances (self-hosted GitHub) are now properly detected throughout the codebase, replacing hardcoded `github.com` comparisons with host-aware utility functions.\n\n**Details**\n\n- New `Em()` function recognizes a hostname as GitHub.com (with or without `www.` prefix).\n- New `ewr()` and `fgs()` functions return the correct REST API and GraphQL endpoint URLs for both GitHub.com and GitHub Enterprise.\n- `GH_HOST` environment variable comparisons now use normalized host matching (`ocn()`) instead of exact string equality.\n- Marketplace git source fetches now use the constant `github.com` instead of a hardcoded literal string.\n\n**Evidence**\n\nHost detection utilities (search for `\"https:\/\/api.github.com\"` in `ewr()`, or `\"github.com\"` constant `LA`)"}