Поправил рассчет доменов

This commit is contained in:
Sipachev Igor 2022-03-22 13:26:00 +07:00
parent 77408cdb73
commit b89b96ebbe

View File

@ -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
}