MCPcopy Index your code
hub / github.com/simstudioai/sim / getAllowedIntegrationsFromEnv

Function getAllowedIntegrationsFromEnv

apps/sim/lib/core/config/env-flags.ts:294–300  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292 * If not set or empty, returns null (meaning all integrations are allowed).
293 */
294export 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.

Callers 7

executeFunction · 0.90
executeFunction · 0.90
processBlockMetadataFunction · 0.90
route.tsFile · 0.90
mergeEnvAllowlistFunction · 0.90
validateBlockTypeFunction · 0.90
assertPermissionsAllowedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected