| 1 | import type { ConfigService } from '@nestjs/config'; |
| 2 | |
| 3 | /** Where GitHub-shaped responses point: browser links at the web app, API links and clone URLs at the API, SSH clone URLs at the SSH host. */ |
| 4 | export function githubOrigins(config |
| 5 | return { |
| 6 | api: config.getOrThrow |
| 7 | web: config |
| 8 | .get<string>( |
| 9 | .replace(/\/$ |
| 10 | sshHost: config.get |
| 11 | }; |
| 12 | } |
| 13 | |
| 14 | export type GithubOrigins |