mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Add check for ONEUPTIME_URL in Config.ts
This commit is contained in:
parent
4a191b6282
commit
b9b3580ca3
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user