diff --git a/packages/xarc-app-dev/package.json b/packages/xarc-app-dev/package.json index c58b34b07..e37ca7ae6 100644 --- a/packages/xarc-app-dev/package.json +++ b/packages/xarc-app-dev/package.json @@ -81,6 +81,7 @@ "mkdirp": "^1.0.4", "nix-clap": "^1.3.13", "nyc": "^15.1.0", + "open": "^8.4.0", "optional-require": "^1.1.8", "pkg-up": "^3.1.0", "prompts": "^2.4.2", diff --git a/packages/xarc-app-dev/src/lib/dev-admin/redbird-proxy.ts b/packages/xarc-app-dev/src/lib/dev-admin/redbird-proxy.ts index 23101ec2e..2cc19a2ac 100644 --- a/packages/xarc-app-dev/src/lib/dev-admin/redbird-proxy.ts +++ b/packages/xarc-app-dev/src/lib/dev-admin/redbird-proxy.ts @@ -5,6 +5,7 @@ import Path from "path"; import _ from "lodash"; import redbird from "@jchip/redbird"; import ck from "chalker"; +import open from "open"; import { makeOptionalRequire } from "optional-require"; import { devProxy } from "../../config/dev-proxy"; import { cdnMock } from "./cdn-mock"; @@ -292,6 +293,7 @@ View status at ${proxyUrls.https || proxyUrls.http}${controlPaths.status} .join(" or "); console.log(ck`You can access your app at ${urlsShow}`); + open(proxyUrls.https || proxyUrls.http); }, 100).unref(); };