@within-7/jetr 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -719,9 +719,16 @@ domainCmd.command("add").description("Add a custom domain to a site").argument("
|
|
|
719
719
|
try {
|
|
720
720
|
const result = await api.addDomain(site, hostname);
|
|
721
721
|
console.log(chalk2.green(`\u2713 Domain added: ${result.hostname}`));
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
722
|
+
if (result.route_registered) {
|
|
723
|
+
console.log(chalk2.green(` Route auto-registered on Cloudflare`));
|
|
724
|
+
}
|
|
725
|
+
if (result.note) {
|
|
726
|
+
console.log(` ${chalk2.dim(String(result.note))}`);
|
|
727
|
+
}
|
|
728
|
+
if (result.cname_target) {
|
|
729
|
+
console.log();
|
|
730
|
+
console.log(` DNS: ${chalk2.cyan(String(result.hostname))} CNAME ${chalk2.dim(String(result.cname_target))}`);
|
|
731
|
+
}
|
|
725
732
|
console.log();
|
|
726
733
|
} catch (e) {
|
|
727
734
|
console.error(chalk2.red(e.message));
|