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
@@ -23,7 +23,7 @@ async function resolveSiteUuidForAgent(agentUuid, fallbackSiteUuid, adminUser, b
|
||||
|
||||
if (!siteUuid) {
|
||||
siteUuid = adminUser.role === 'SUPER_ADMIN'
|
||||
? (bodySiteUuid || process.env.BACKONE_SITE_UUID || fallbackSiteUuid || null)
|
||||
? (bodySiteUuid || process.env.BACKONE_SITE_UUID || process.env.NETIFY_SITE_UUID)
|
||||
: adminUser.site_uuid;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user