MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / checkInvariants

Function checkInvariants

apps/api/src/config/env/validate.ts:790–803  ·  view source on GitHub ↗
(env: Env)

Source from the content-addressed store, hash-verified

788};
789
790const checkInvariants = (env: Env): string[] => [
791 ...checkUrls(env),
792 ...checkOrigins(env),
793 ...checkMfaKeyInProd(env),
794 ...checkEmailProvider(env),
795 ...checkAIProvider(env),
796 ...checkBilling(env),
797 ...checkOAuth(env),
798 ...checkQueuesEnabledInProd(env),
799 ...checkCacheProviderInProd(env),
800 ...checkValkeyPassword(env),
801 ...checkWebPushVapid(env),
802 ...checkPlaceholderSecrets(env),
803];
804
805const formatSchemaErrors = (raw: Record<string, unknown>): string[] => {
806 const errors: string[] = [];

Callers 1

validateEnvFunction · 0.85

Calls 12

checkUrlsFunction · 0.85
checkOriginsFunction · 0.85
checkMfaKeyInProdFunction · 0.85
checkEmailProviderFunction · 0.85
checkAIProviderFunction · 0.85
checkBillingFunction · 0.85
checkOAuthFunction · 0.85
checkQueuesEnabledInProdFunction · 0.85
checkCacheProviderInProdFunction · 0.85
checkValkeyPasswordFunction · 0.85
checkWebPushVapidFunction · 0.85
checkPlaceholderSecretsFunction · 0.85

Tested by

no test coverage detected