Feat: Natively support NETIFY environment variables and improve MongoDB detection based on URI presence
This commit is contained in:
1 parent
eedaa588b5
commit
2be8b08074
8 files changed
+16
-16
No files matched your search
@@ -70,7 +70,7 @@ async function populateAppCache(BASE_URL, token, siteUuid) {
|
||||
|
||||
// Core DPI fetch for app-details
|
||||
async function fetchFromDpiApi(label, agentUuid, timeRange, token, siteUuid) {
|
||||
const BASE_URL = process.env.BACKONE_INFORMATICS_BASE_URL || 'https://api0.dev.backone.cloud/api/v1';
|
||||
const BASE_URL = process.env.BACKONE_INFORMATICS_BASE_URL || process.env.NETIFY_INFORMATICS_BASE_URL || 'https://api0.dev.backone.cloud/api/v1';
|
||||
const headers = { 'x-api-key': token, 'Accept': 'application/json', 'x-net-site': siteUuid };
|
||||
|
||||
const TIMEOUT_MS = 12000;
|
||||
|
||||
Reference in new issue
Block a user