Skip to content

Commit 61d50ae

Browse files
committed
[dashboard] compute useIsGithubAppEnabled on FE
1 parent 0ec0037 commit 61d50ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/dashboard/src/data/git-providers/github-queries.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import { useCurrentUser } from "../../user-context";
1111

1212
export const useIsGithubAppEnabled = () => {
1313
return useQuery(["github-app-enabled"], async () => {
14-
return await getGitpodService().server.isGitHubAppEnabled();
14+
// 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";
1516
});
1617
};
1718

0 commit comments

Comments
 (0)