Commit 49f1be6b authored by Sidson's avatar Sidson
Browse files

Merge branch 'fix/domain' into 'master'

fix: upadte domain helper

See merge request !4
parents cfa6ac01 4e9c5a7f
......@@ -2,14 +2,17 @@ import { environment } from 'src/environments/environment';
let _domain = 'http://localhost:3000';
if (environment.api === 'test') {
_domain = 'https://datatest.metromobilite.fr';
_domain = 'https://datatest.mobilites-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';
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment