Skip to content

Commit

Permalink
hard code subdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherange committed Mar 20, 2024
1 parent 4ccf3f4 commit bc1e231
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions micro-service/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit bc1e231

Please sign in to comment.