Leo Lamprecht
8 years ago
No known key found for this signature in database
GPG Key ID: B08517883D5E0E10
1 changed files with
4 additions and
0 deletions
-
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) { |
|
|
|