Skip to content

Beautiful Open-Source Form Builder

Fix debug

Julien Nahum59c8a858241d
diff --git a/client/middleware/custom-domain.global.js b/client/middleware/custom-domain.global.js
index d0705cf2b..1fa142918 100644
--- a/client/middleware/custom-domain.global.js
+++ b/client/middleware/custom-domain.global.js
@@ -13,6 +13,7 @@ const customDomainHeaderName = "user-custom-domain"
const customDomainAllowedRoutes = ["forms-slug"]
function redirectToMainDomain(details = {}) {
+ const config = useRuntimeConfig()
const appDomain = getDomain(config.public.appUrl)
const host = getHost()
console.warn("Redirecting to main domain", {