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", {