|
|
|
@ -20,11 +20,14 @@ export class DomainResolver { |
|
|
|
|
url.indexOf('placetgroup') > -1 |
|
|
|
|
const project = isPlacetgroup ? 'placetgroup' : 'nordecum' |
|
|
|
|
const domain = isPlacetgroup ? 'com' : 'lt' |
|
|
|
|
if (nickname && url.indexOf('.sv') > -1) { |
|
|
|
|
const isLocal = url.indexOf('.sv') !== -1 |
|
|
|
|
if (nickname && isLocal) { |
|
|
|
|
url = project + '.' + nickname + '.sv' |
|
|
|
|
} else { |
|
|
|
|
url = project + '.' + nickname + '.' + domain |
|
|
|
|
url = 'dev.' + project + '.' + domain |
|
|
|
|
} |
|
|
|
|
url = (isLocal ? 'http://' : 'https://') + url |
|
|
|
|
console.log('domain_resolver', parts, nickname, isPlacetgroup, project, domain, url) |
|
|
|
|
resolve(url) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|