From bc1e2311a82524b6542e6be5f1c54757ee5db8e8 Mon Sep 17 00:00:00 2001 From: Sherange Date: Wed, 20 Mar 2024 19:21:51 +0530 Subject: [PATCH] hard code subdomain --- micro-service/src/App.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/micro-service/src/App.js b/micro-service/src/App.js index 451e6945..7e71241b 100644 --- a/micro-service/src/App.js +++ b/micro-service/src/App.js @@ -30,14 +30,7 @@ function ChurchLogo(props) { } function App(props) { - let subdomain = - process.env.NODE_ENV === 'production' - ? window.location.hostname.split('.').slice(0, -2).join('.') - : window.location.hostname.split('.').slice(0, -1).join('.'); - - if (process.env.NODE_ENV !== 'production' && !subdomain) { - subdomain = 'cedar_creek'; - } + let subdomain = 'cedar_creek'; const churchSlug = subdomain.replace(/-/g, '_'); const searchParams = new URLSearchParams(window.location.search); const _root = searchParams.get('root');