Add check for ONEUPTIME_URL in Config.ts

This commit is contained in:
Simon Larsen 2024-01-29 12:54:43 +00:00
parent 4a191b6282
commit b9b3580ca3
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -2,8 +2,8 @@ import URL from 'Common/Types/API/URL';
import logger from 'CommonServer/Utils/Logger';
import ObjectID from 'Common/Types/ObjectID';
if (!process.env['INGESTOR_URL']) {
logger.error('INGESTOR_URL is not set');
if (!process.env['INGESTOR_URL'] && !process.env['ONEUPTIME_URL']) {
logger.error('INGESTOR_URL or ONEUPTIME_URL is not set');
process.exit();
}