diff --git a/lib/alias.js b/lib/alias.js index fcada1b..490c38f 100644 --- a/lib/alias.js +++ b/lib/alias.js @@ -96,7 +96,7 @@ module.exports = class Alias extends Now { } async updatePathBasedroutes(alias, rules) { - await this.maybeSetUpDomain(alias) + alias = await this.maybeSetUpDomain(alias) return await this.upsertPathAlias(alias, rules) } @@ -240,7 +240,7 @@ module.exports = class Alias extends Now { } } - await this.maybeSetUpDomain(alias) + alias = await this.maybeSetUpDomain(alias) const newAlias = await this.createAlias(depl, alias) if (!newAlias) { @@ -531,6 +531,7 @@ module.exports = class Alias extends Now { console.log(`> Verification ${chalk.bold('OK')}!`) } + return alias } verifyOwnership(domain) {