cli/utils/checkRequiredEnvVars
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
Variables
Section titled “Variables”checkRequiredEnvVarsEffect
Section titled “checkRequiredEnvVarsEffect”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.
Yields
Section titled “Yields”Logs an error and exits the process if any required environment variables are missing.
Returns
Section titled “Returns”void
if all required environment variables are present.
Functions
Section titled “Functions”checkRequiredEnvVars()
Section titled “checkRequiredEnvVars()”function checkRequiredEnvVars(envVars: string[]): Promise<void>;
Defined in: studiocms/packages/studiocms/src/cli/utils/checkRequiredEnvVars.ts:8^
Parameters
Section titled “Parameters”envVars
Section titled “envVars”string
[]
Returns
Section titled “Returns”Promise
<void
>