Blame · Line-by-line history
config.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| fc1817a | 1 | import { join } from "path"; |
| 2 | ||
| 3 | export const config = { | |
| 4 | get port() { | |
| 5 | return Number(process.env.PORT || 3000); | |
| 6 | }, | |
| 7 | get databaseUrl() { | |
| 8 | return process.env.DATABASE_URL || ""; | |
| 9 | }, | |
| 10 | get gitReposPath() { | |
| 11 | return process.env.GIT_REPOS_PATH || join(process.cwd(), "repos"); | |
| 12 | }, | |
| 13 | get gatetestUrl() { | |
| 14 | return process.env.GATETEST_URL || "https://gatetest.ai/api/scan/run"; | |
| 15 | }, | |
| e883329 | 16 | get gatetestApiKey() { |
| 17 | return process.env.GATETEST_API_KEY || ""; | |
| 18 | }, | |
| fc1817a | 19 | get crontechDeployUrl() { |
| 20 | return ( | |
| 21 | process.env.CRONTECH_DEPLOY_URL || | |
| 22 | "https://crontech.ai/api/trpc/tenant.deploy" | |
| 23 | ); | |
| 24 | }, | |
| e883329 | 25 | get anthropicApiKey() { |
| 26 | return process.env.ANTHROPIC_API_KEY || ""; | |
| 27 | }, | |
| fc1817a | 28 | }; |