Skip to content

Commit

Permalink
[client-backup] set backup-service prod URL
Browse files Browse the repository at this point in the history
Summary:
Add URL to deployed service.

There is one problem with this, see: [ENG-4852](https://linear.app/comm/issue/ENG-4852/handle-staging-backup-issue).

Depends on D9066

Test Plan: N/A

Reviewers: michal, marcin, bartek

Reviewed By: michal

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D9075
  • Loading branch information
xsanm committed Sep 7, 2023
1 parent 2b9f0dc commit 77b41a8
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/facts/backup-service.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// @flow

import { isDev } from '../utils/dev-utils.js';

type BackupServiceEndpointPath =
| '/backups'
| '/backups/:backupID/user_keys'
Expand Down Expand Up @@ -37,8 +39,13 @@ const httpEndpoints = Object.freeze({
},
});

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,
};

Expand Down

0 comments on commit 77b41a8

Please sign in to comment.