Skip to content

Commit 9807a1f

Browse files
authored
ui github setup link fix (#2642)
1 parent 6ba72cf commit 9807a1f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ui/src/lib/env.server.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export type Env = {
1010
PUBLIC_HOSTNAME: string
1111
STATESMAN_BACKEND_URL: string
1212
WORKOS_REDIRECT_URI: string
13+
ORCHESTRATOR_GITHUB_APP_URL: string
1314
POSTHOG_KEY?: string
1415
POSTHOG_HOST?: string
1516
}
@@ -21,6 +22,7 @@ export const getPublicServerConfig = createServerFn({ method: 'GET' })
2122
PUBLIC_HOSTNAME: process.env.PUBLIC_URL?.replace('https://', '').replace('http://', '') ?? '',
2223
STATESMAN_BACKEND_URL: process.env.STATESMAN_BACKEND_URL ?? '',
2324
WORKOS_REDIRECT_URI: process.env.WORKOS_REDIRECT_URI ?? '',
25+
ORCHESTRATOR_GITHUB_APP_URL: process.env.ORCHESTRATOR_GITHUB_APP_URL ?? '',
2426
POSTHOG_KEY: process.env.POSTHOG_KEY || process.env.NEXT_PUBLIC_POSTHOG_KEY || process.env.VITE_PUBLIC_POSTHOG_KEY || '',
2527
POSTHOG_HOST: process.env.POSTHOG_HOST || process.env.NEXT_PUBLIC_POSTHOG_HOST || process.env.VITE_PUBLIC_POSTHOG_HOST || 'https://app.posthog.com',
2628
} as Env

ui/src/routes/_authenticated/_dashboard/dashboard/onboarding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const Route = createFileRoute(
1717
loader: async ({ context }) => {
1818
const { user, organisationId, publicServerConfig } = context
1919
const publicHostname = publicServerConfig?.PUBLIC_HOSTNAME || ''
20-
const githubAppUrl = '/orchestrator/github/setup'
20+
const githubAppUrl = publicServerConfig?.ORCHESTRATOR_GITHUB_APP_URL || ''
2121
return { user, organisationId, publicHostname, githubAppUrl }
2222
},
2323
})

0 commit comments

Comments
 (0)