From 88b067d7d0d92c56cb7ba27f017490d9b22f6ba1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Louv-Jansen?= Date: Mon, 26 Sep 2022 20:15:26 +0200 Subject: [PATCH] Update registry_url.ts --- .../plugins/fleet/server/services/epm/registry/registry_url.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts b/x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts index c6d522a2dd0fa..31bb776ee1d69 100644 --- a/x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts +++ b/x-pack/plugins/fleet/server/services/epm/registry/registry_url.ts @@ -20,6 +20,7 @@ const SNAPSHOT_REGISTRY_URL_CDN = 'https://epr-snapshot.elastic.co'; // const SNAPSHOT_REGISTRY_URL_NO_CDN = 'https://epr-snapshot.ea-web.elastic.dev'; const getDefaultRegistryUrl = (): string => { + const branch = appContextService.getKibanaBranch(); const isProduction = appContextService.getIsProductionMode(); if (!isProduction || branch === 'main') { return SNAPSHOT_REGISTRY_URL_CDN;