diff --git a/lib/alias.js b/lib/alias.js index 1ec462e..1bc9094 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -15,6 +15,7 @@ export default class Alias extends Now { async ls(deployment) { if (deployment) { const target = await this.findDeployment(deployment) + if (!target) { const err = new Error(`Aliases not found by "${deployment}". Run ${chalk.dim('`now alias ls`')} to see your aliases.`) err.userError = true @@ -63,6 +64,7 @@ export default class Alias extends Now { if (this._debug) { console.log(`> [debug] matched deployment ${d.uid} by ${key} ${val}`) } + return true } @@ -71,6 +73,7 @@ export default class Alias extends Now { if (this._debug) { console.log(`> [debug] matched deployment ${d.uid} by url ${d.url}`) } + return true } @@ -127,6 +130,7 @@ export default class Alias extends Now { if (!isZeitWorld(nameservers)) { const domainInfo = await this.getDomain(domain) + if (domainInfo.verified) { skipDNSVerification = true } else if (domainInfo.uid) {