콘텐츠로 이동

cli/utils/checkRequiredEnvVars

이 콘텐츠는 아직 번역되지 않았습니다.

const checkRequiredEnvVarsEffect: any;

Defined in: studiocms/packages/studiocms/src/cli/utils/checkRequiredEnvVars.ts:38^

Checks for the presence of required environment variables and logs an error if any are missing.

Iterates over the provided list of environment variable names, collecting any that are not set in the current process environment. If any required variables are missing, logs an error message listing the missing variables and exits the process with a non-zero status code.

An array of environment variable names to check for presence.

Logs an error and exits the process if any required environment variables are missing.

void if all required environment variables are present.

function checkRequiredEnvVars(envVars: string[]): Promise<void>;

Defined in: studiocms/packages/studiocms/src/cli/utils/checkRequiredEnvVars.ts:8^

string[]

Promise<void>