Update check-env for CI build.

This commit is contained in:
Mike Cao 2023-05-16 21:13:17 -07:00
parent 2259d4fae5
commit 9d4808f5ef

View File

@ -18,7 +18,9 @@ function checkMissing(vars) {
}
}
checkMissing(['DATABASE_URL']);
if (!process.env.SKIP_DB_CHECK && !process.env.DATABASE_TYPE) {
checkMissing(['DATABASE_URL']);
}
if (process.env.CLICKHOUSE_URL) {
checkMissing(['CA_CERT', 'CLIENT_CERT', 'CLIENT_KEY', 'KAFKA_BROKER', 'KAFKA_URL', 'REDIS_URL']);