diff --git a/src/components/site/SiteLayout.tsx b/src/components/site/SiteLayout.tsx index 55424fa1..ea8c4d59 100644 --- a/src/components/site/SiteLayout.tsx +++ b/src/components/site/SiteLayout.tsx @@ -34,17 +34,17 @@ export const SiteLayout: React.FC = ({ children, title }) => { siteId: domainOrSubdomain, }) - useEffect(() => { - if (site.data) { - if ( - window.location.host.split(".").slice(-2).join(".") !== OUR_DOMAIN && - window.location.host !== site.data?.custom_domain && - IS_PROD - ) { - window.location.href = SITE_URL - } - } - }, [site.isSuccess, site.data]) + // useEffect(() => { + // if (site.data) { + // if ( + // window.location.host.split(".").slice(-2).join(".") !== OUR_DOMAIN && + // window.location.host !== site.data?.custom_domain && + // IS_PROD + // ) { + // window.location.href = SITE_URL + // } + // } + // }, [site.isSuccess, site.data]) return ( <>