Skip to content

Beautiful Open-Source Form Builder

Completely Disable custom domain check when not enabled

Julien Nahumd1dc4fda567a
diff --git a/client/.env.docker b/client/.env.docker
index e38db1f3a..55fad1255 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 f5ddf80b9..831797486 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()