()
| 292 | * If not set or empty, returns null (meaning all integrations are allowed). |
| 293 | */ |
| 294 | export function getAllowedIntegrationsFromEnv(): string[] | null { |
| 295 | if (!env.ALLOWED_INTEGRATIONS) return null |
| 296 | const parsed = env.ALLOWED_INTEGRATIONS.split(',') |
| 297 | .map((i) => i.trim().toLowerCase()) |
| 298 | .filter(Boolean) |
| 299 | return parsed.length > 0 ? parsed : null |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * Returns the list of blacklisted provider IDs from the environment variable. |
no outgoing calls
no test coverage detected