(name: string)
| 11 | |
| 12 | // ---------- Minimal env helpers ---------- |
| 13 | function getEnv(name: string): string | undefined { |
| 14 | if (typeof process !== 'undefined' && process.env && name in process.env) { |
| 15 | return process.env[name] |
| 16 | } |
| 17 | return undefined |
| 18 | } |
| 19 | |
| 20 | const CONNECTION_STRING = getEnv('POSTGRES_URL') ?? getEnv('DATABASE_URL') |
| 21 | if (!CONNECTION_STRING) { |
no outgoing calls
no test coverage detected