From 59c8a858241d6112dc3d507a348be122e2c1bfe6 Mon Sep 17 00:00:00 2001 From: Julien Nahum Date: Mon, 15 Jul 2024 13:18:38 +0200 Subject: [PATCH] Fix debug --- client/middleware/custom-domain.global.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/middleware/custom-domain.global.js b/client/middleware/custom-domain.global.js index d0705cf2..1fa14291 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", {