diff --git a/desktop/src/ui/platform.ts b/desktop/src/ui/platform.ts index 3e51ba0a00..3a9585634b 100644 --- a/desktop/src/ui/platform.ts +++ b/desktop/src/ui/platform.ts @@ -201,6 +201,7 @@ export async function configurePlatform (): Promise { ipcMain.setTitle(title) setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL) + setMetadata(login.metadata.DisableSignUp, config.DISABLE_SIGNUP === 'true') setMetadata(presentation.metadata.UploadURL, config.UPLOAD_URL) setMetadata(presentation.metadata.FilesURL, config.FILES_URL) setMetadata(presentation.metadata.CollaboratorUrl, config.COLLABORATOR_URL) diff --git a/desktop/src/ui/types.ts b/desktop/src/ui/types.ts index a8d8e16450..964b189a8b 100644 --- a/desktop/src/ui/types.ts +++ b/desktop/src/ui/types.ts @@ -28,6 +28,7 @@ export interface Config { PUSH_PUBLIC_KEY: string ANALYTICS_COLLECTOR_URL?: string AI_URL?:string + DISABLE_SIGNUP?: string BRANDING_URL?: string PREVIEW_CONFIG: string UPLOAD_CONFIG: string diff --git a/dev/prod/src/platform.ts b/dev/prod/src/platform.ts index 9de3123eba..31e3752476 100644 --- a/dev/prod/src/platform.ts +++ b/dev/prod/src/platform.ts @@ -151,7 +151,7 @@ export interface Config { BRANDING_URL?: string TELEGRAM_BOT_URL?: string AI_URL?:string - + DISABLE_SIGNUP?: string // Could be defined for dev environment FRONT_URL?: string PREVIEW_CONFIG?: string @@ -292,6 +292,7 @@ export async function configurePlatform() { // tryOpenInDesktopApp(config.APP_PROTOCOL ?? 'huly://') setMetadata(login.metadata.AccountsUrl, config.ACCOUNTS_URL) + setMetadata(login.metadata.DisableSignUp, config.DISABLE_SIGNUP === 'true') setMetadata(presentation.metadata.FilesURL, config.FILES_URL) setMetadata(presentation.metadata.UploadURL, config.UPLOAD_URL) setMetadata(presentation.metadata.CollaboratorUrl, config.COLLABORATOR_URL)