From 8d0c84247ebfecfecaee1a8131520a3e71d0f4e7 Mon Sep 17 00:00:00 2001 From: jackiszhp <94544458@qq.com> Date: Mon, 5 Jan 2026 18:16:52 +0800 Subject: [PATCH] when livereload-url is specified, the server is not started. move this one line out of the condition check, the serve is started no matter whether livereload-url is specified or not. --- packages/@ionic/cli/src/commands/capacitor/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@ionic/cli/src/commands/capacitor/base.ts b/packages/@ionic/cli/src/commands/capacitor/base.ts index 1698cc1e4..05e96ee9d 100644 --- a/packages/@ionic/cli/src/commands/capacitor/base.ts +++ b/packages/@ionic/cli/src/commands/capacitor/base.ts @@ -236,8 +236,8 @@ export abstract class CapacitorCommand extends Command { let serverUrl = options['livereload-url'] ? String(options['livereload-url']) : undefined; + const details = await runner.run(runnerOpts); if (!serverUrl) { - const details = await runner.run(runnerOpts); serverUrl = `${details.protocol || 'http'}://${details.externalAddress}:${details.port}`; }