環境変数が未定義の場合のエラーメッセージをコンソール出力から削除

This commit is contained in:
ntki72 2025-01-03 23:24:48 +09:00
parent 8b43a387f1
commit 874f1c2fd7

View File

@ -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.`);
}
});