diff --git a/.changeset/fifty-bears-battle.md b/.changeset/fifty-bears-battle.md new file mode 100644 index 00000000..8ca4f0df --- /dev/null +++ b/.changeset/fifty-bears-battle.md @@ -0,0 +1,5 @@ +--- +'@pockethost/plugin-launcher-spawn': patch +--- + +Enhancement: improve URL instructions diff --git a/packages/plugin-launcher-spawn/src/index.ts b/packages/plugin-launcher-spawn/src/index.ts index f4dbb4e8..24657379 100644 --- a/packages/plugin-launcher-spawn/src/index.ts +++ b/packages/plugin-launcher-spawn/src/index.ts @@ -68,11 +68,17 @@ const plugin: PocketHostPlugin = async ({}) => { /** Display some informational alerts to help the user get started. */ onAfterServerStartAction(async () => { - info(`Listening for requests on *.${APEX_DOMAIN()}`) const protocol = PORT() === 443 ? 'https' : 'http' - const url = new URL(`${protocol}://hello.${APEX_DOMAIN()}`) - url.port = `${PORT() === 80 || PORT() == 443 ? '' : PORT()}` - info(`Try visiting ${url}`) + { + const url = new URL(`${protocol}://*.${APEX_DOMAIN()}`) + url.port = `${PORT() === 80 || PORT() == 443 ? '' : PORT()}` + info(`Listening for requests on ${url}`) + } + { + const url = new URL(`${protocol}://hello.${APEX_DOMAIN()}`) + url.port = `${PORT() === 80 || PORT() == 443 ? '' : PORT()}` + info(`Try visiting ${url}`) + } }) /** When a request comes in, return an instance based on subdomain */