Closed gilsoncav closed 3 years ago
Fix for this issue can be ported from the website component:
const getNakedDomain = (domain) => {
const parsedDomain = parseDomain(domain)
if (!parsedDomain.topLevelDomains) {
throw new Error(`"${domain}" is not a valid domain.`)
}
const nakedDomain = `${parsedDomain.domain}.${parsedDomain.topLevelDomains.join('.')}`
return nakedDomain
}
This should now be fixed and published.
When setting the yml with this option:
it doesn't behave well due to this method that wrongly gets the naked domain:
Maybe using a regex based matching would be a better approach.