diff --git a/desktop/src/ui/platform.ts b/desktop/src/ui/platform.ts index 3ffc48f869..1a3c0ef573 100644 --- a/desktop/src/ui/platform.ts +++ b/desktop/src/ui/platform.ts @@ -33,7 +33,7 @@ import presence, { presenceId } from '@hcengineering/presence' import { recruitId } from '@hcengineering/recruit' import rekoni from '@hcengineering/rekoni' import { requestId } from '@hcengineering/request' -import { settingId } from '@hcengineering/setting' +import setting, { settingId } from '@hcengineering/setting' import { supportId } from '@hcengineering/support' import { tagsId } from '@hcengineering/tags' import { taskId } from '@hcengineering/task' @@ -346,6 +346,8 @@ export async function configurePlatform (): Promise { configureNotifications() + setMetadata(setting.metadata.BackupUrl, config.BACKUP_URL ?? '') + if (config.INITIAL_URL !== '') { setLocationStorageKey('uberflow_child') } diff --git a/desktop/src/ui/types.ts b/desktop/src/ui/types.ts index 30f4daef1f..cf02193761 100644 --- a/desktop/src/ui/types.ts +++ b/desktop/src/ui/types.ts @@ -38,6 +38,8 @@ export interface Config { UPLOAD_CONFIG: string UPLOAD_URL: string VERSION?: string + + BACKUP_URL?: string } export interface Branding {