use platform url env

This commit is contained in:
Martin McKeaveney 2022-05-18 21:00:42 +01:00
parent 5d8cf87c05
commit 296a327ee9
1 changed files with 5 additions and 1 deletions

View File

@ -22,7 +22,11 @@ async function fetchGoogleCreds() {
}
async function getPlatformUrl() {
let platformUrl = environment.PLATFORM_URL || "http://localhost:10000"
if (environment.PLATFORM_URL) {
return environment.PLATFORM_URL
}
let platformUrl = "http://localhost:10000"
const db = getGlobalDB()
const settings = await getScopedConfig(db, {