MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / isAllowedEnv

Function isAllowedEnv

api/src/utils/env.ts:28–30  ·  view source on GitHub ↗
(env: string)

Source from the content-addressed store, hash-verified

26}
27
28function isAllowedEnv(env: string): env is 'development' | 'production' {
29 return ['development', 'production'].includes(env);
30}
31
32const _EMAIL_PROVIDER = process.env.EMAIL_PROVIDER || 'ses';
33const _FREECODECAMP_NODE_ENV =

Callers 1

env.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected