環境変数が未定義の場合のエラーメッセージをコンソール出力から削除
This commit is contained in:
parent
8b43a387f1
commit
874f1c2fd7
@ -20,7 +20,6 @@ const requiredEnvVars = [
|
||||
|
||||
requiredEnvVars.forEach((varName) => {
|
||||
if (!process.env[varName]) {
|
||||
console.error(`Environment variable ${varName} is required but not defined.`);
|
||||
throw new Error(`Environment variable ${varName} is required but not defined.`);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user