We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
useIsGithubAppEnabled
1 parent 0ec0037 commit 61d50aeCopy full SHA for 61d50ae
components/dashboard/src/data/git-providers/github-queries.ts
@@ -11,7 +11,8 @@ import { useCurrentUser } from "../../user-context";
11
12
export const useIsGithubAppEnabled = () => {
13
return useQuery(["github-app-enabled"], async () => {
14
- return await getGitpodService().server.isGitHubAppEnabled();
+ // similar to `isGitpodio`, but the GH App is only configured on Cloud.
15
+ return window.location.hostname === "gitpod.io" || window.location.hostname === "gitpod-staging.com";
16
});
17
};
18
0 commit comments