From 0dcdad45af89c152d1285114f30bedd4892dd023 Mon Sep 17 00:00:00 2001 From: zz-hh-aa Date: Mon, 25 Nov 2024 10:08:14 +0000 Subject: [PATCH] chore: tidy client imports and exports --- api.planx.uk/modules/analytics/metabase/shared/client.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.planx.uk/modules/analytics/metabase/shared/client.ts b/api.planx.uk/modules/analytics/metabase/shared/client.ts index 34a23c9377..9ce5267505 100644 --- a/api.planx.uk/modules/analytics/metabase/shared/client.ts +++ b/api.planx.uk/modules/analytics/metabase/shared/client.ts @@ -25,14 +25,14 @@ interface MetabaseConfig { } // Validate environment variables -const validateConfig = (): MetabaseConfig => { - const baseURL = process.env.METABASE_BASE_URL; +export const validateConfig = (): MetabaseConfig => { + const baseURL = process.env.METABASE_URL_EXT; const apiKey = process.env.METABASE_API_KEY; const METABASE_TIMEOUT = 30_000; const METABASE_MAX_RETRIES = 3; - assert(baseURL, "Missing environment variable 'METABASE_BASE_URL'"); + assert(baseURL, "Missing environment variable 'METABASE_URL_EXT'"); assert(apiKey, "Missing environment variable 'METABASE_API_KEY'"); return {