Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: Enterprise Github instance endpoint

Andras Bacsaia205a7d5141f
diff --git a/apps/ui/src/routes/sources/[id]/_Github.svelte b/apps/ui/src/routes/sources/[id]/_Github.svelte
index fc638b2d8f..82522092db 100644
--- a/apps/ui/src/routes/sources/[id]/_Github.svelte
+++ b/apps/ui/src/routes/sources/[id]/_Github.svelte
@@ -36,10 +36,14 @@
async function installRepositories(source: any) {
const { htmlUrl } = source;
+ let endpoint = 'apps'
+ if (htmlUrl !== 'https://github.com') {
+ endpoint = 'github-apps'
+ }
const left = screen.width / 2 - 1020 / 2;
const top = screen.height / 2 - 1000 / 2;
const newWindow = open(
- `${htmlUrl}/apps/${source.githubApp.name}/installations/new`,
+ `${htmlUrl}/${endpoint}/${source.githubApp.name}/installations/new`,
'GitHub',
'resizable=1, scrollbars=1, fullscreen=0, height=1000, width=1020,top=' +
top +