Don't set apiBaseUrl

This is already handled by the gitlab client and the default is wrong
This commit is contained in:
Johan Haals
2021-01-20 11:13:03 +01:00
parent 49558a35aa
commit 954a7eecab
@@ -18,7 +18,6 @@ import { Config } from '@backstage/config';
import { isValidHost } from '../helpers';
const GITLAB_HOST = 'gitlab.com';
const GITLAB_API_BASE_URL = 'gitlab.com/api/v4';
/**
* The configuration parameters for a single GitLab integration.
@@ -68,8 +67,6 @@ export function readGitLabIntegrationConfig(
if (apiBaseUrl) {
apiBaseUrl = apiBaseUrl.replace(/\/+$/, '');
} else if (host === GITLAB_HOST) {
apiBaseUrl = GITLAB_API_BASE_URL;
}
return { host, token, apiBaseUrl };
}