From d1dc4fda567a562ec22ee465ad65783962aae4d6 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Mon, 5 Feb 2024 14:02:20 +0100 Subject: [PATCH] Completely Disable custom domain check when not enabled --- client/.env.docker | 2 +- client/lib/utils.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/.env.docker b/client/.env.docker index e38db1f..55fad12 100644 --- a/client/.env.docker +++ b/client/.env.docker @@ -4,7 +4,7 @@ NUXT_PUBLIC_API_BASE=http://localhost/api NUXT_PUBLIC_AI_ENABLED=false NUXT_PUBLIC_AMPLITUDE_CODE= NUXT_PUBLIC_CRISP_WEBSITE_ID= -NUXT_PUBLIC_CUSTOM_DOMAINS_ENABLED=false +NUXT_PUBLIC_CUSTOM_DOMAINS_ENABLED= NUXT_PUBLIC_ENV=local NUXT_PUBLIC_GOOGLE_ANALYTICS_CODE= NUXT_PUBLIC_H_CAPTCHA_SITE_KEY= diff --git a/client/lib/utils.js b/client/lib/utils.js index f5ddf80..8317974 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -90,6 +90,7 @@ export const getDomain = function (url) { */ export const customDomainUsed = function() { const config = useRuntimeConfig() + if (!config.public.customDomainsEnabled) return false const appDomain = getDomain(config.public.appUrl) const host = getHost()