Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
m
Affluence
Affluence Front
Commits
49f1be6b
Commit
49f1be6b
authored
Mar 11, 2022
by
Sidson
Browse files
Merge branch 'fix/domain' into 'master'
fix: upadte domain helper See merge request
!4
parents
cfa6ac01
4e9c5a7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/helpers/domain.helpers.ts
View file @
49f1be6b
...
...
@@ -2,14 +2,17 @@ import { environment } from 'src/environments/environment';
let
_domain
=
'
http://localhost:3000
'
;
if
(
environment
.
api
===
'
test
'
)
{
_domain
=
'
https://datatest.
metro
mobilite.fr
'
;
_domain
=
'
https://datatest.mobilite
s-m
.fr
'
;
}
if
(
environment
.
api
===
'
testOuProd
'
)
{
if
([
'
www.metromobilite.fr
'
,
'
www.mobilites-m.fr
'
].
includes
(
window
.
location
.
hostname
))
{
_domain
=
'
https://data.mobilites-m.fr
'
;
}
else
if
([
'
preprod.metromobilite.fr
'
,
'
preprod.mobilites-m.fr
'
].
includes
(
window
.
location
.
hostname
))
{
}
else
if
([
'
preprod.metromobilite.fr
'
].
includes
(
window
.
location
.
hostname
))
{
_domain
=
'
https://datatest.metromobilite.fr
'
;
}
else
{
}
else
if
([
'
preprod.mobilites-m.fr
'
].
includes
(
window
.
location
.
hostname
))
{
_domain
=
'
https://datatest.mobilites-m.fr
'
;
}
else
{
_domain
=
'
https://data.mobilites-m.fr
'
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment