Skip to content

Commit

Permalink
Update HostEnv.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chienleng committed Oct 1, 2024
1 parent 710adfd commit 98872b7
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions services/HostEnv.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,10 @@ export default function () {
if (typeof window !== 'undefined') {
const host = window.location.host

if (host === 'opennem.org.au') {
hostEnv = 'prod'
}
if (host === 'dev.opennem.org.au') {
if (host && (host.startsWith('feature-dev-testing-only') || host.startsWith('dev'))) {
hostEnv = 'dev'
}
if (host === 'staging.opennem.org.au') {
hostEnv = 'staging'
} else {
hostEnv = 'prod'
}
}
return hostEnv
Expand Down

0 comments on commit 98872b7

Please sign in to comment.