We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4afcbbb commit 846b24aCopy full SHA for 846b24a
src/utils/constants.ts
@@ -10,6 +10,8 @@ export const Constants = {
10
clientSecret: process.env.OAUTH_CLIENT_SECRET,
11
},
12
13
+ GITHUB_API_BASE_URL: 'https://api.github.com',
14
+
15
REPO_SLUG: 'gitify-app/gitify',
16
17
// Storage
src/utils/helpers.ts
@@ -39,7 +39,7 @@ export function getGitHubAPIBaseUrl(hostname) {
39
const isEnterprise = isEnterpriseHost(hostname);
40
return isEnterprise
41
? `https://${hostname}/api/v3`
42
- : `https://api.${hostname}`;
+ : Constants.GITHUB_API_BASE_URL;
43
}
44
45
export function addNotificationReferrerIdToUrl(
0 commit comments