diff --git a/lib/facts/backup-service.js b/lib/facts/backup-service.js --- a/lib/facts/backup-service.js +++ b/lib/facts/backup-service.js @@ -1,5 +1,7 @@ // @flow +import { isDev } from '../utils/dev-utils.js'; + type BackupServiceEndpointPath = | '/backups' | '/backups/:backupID/user_keys' @@ -37,8 +39,13 @@ }, }); -const config = { - url: 'http://localhost:50052', +const config: { + url: string, + httpEndpoints: { +[endpoint: string]: BackupServiceHTTPEndpoint }, +} = { + url: isDev + ? 'https://backup.staging.commtechnologies.org' + : 'https://backup.commtechnologies.org', httpEndpoints, };