Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/url-helper.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/url-helper.ts b/src/url-helper.ts
index 31848c7..05f1cbd 100644
--- a/src/url-helper.ts
+++ b/src/url-helper.ts
@@ -20,5 +20,10 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
}
export function getServerUrl(): URL {
- return new URL(process.env['GITHUB_URL'] || 'https://github.com')
+ // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
+ return new URL(
+ process.env['GITHUB_SERVER_URL'] ||
+ process.env['GITHUB_URL'] ||
+ 'https://github.com'
+ )
}