From 6e797a3d2783f6bf719c62a33c580eff234a2de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20Rold=C3=A1n?= Date: Fri, 18 Oct 2024 12:21:57 +0200 Subject: [PATCH] Return the linked app in dev command --- packages/app/src/cli/commands/app/dev.ts | 4 ++-- packages/app/src/cli/services/dev.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/app/src/cli/commands/app/dev.ts b/packages/app/src/cli/commands/app/dev.ts index 39a37d5061b..3b8014984d4 100644 --- a/packages/app/src/cli/commands/app/dev.ts +++ b/packages/app/src/cli/commands/app/dev.ts @@ -194,7 +194,7 @@ If you're using the PHP or Ruby app template, then you need to complete the foll graphiqlKey: flags['graphiql-key'], } - const result = await dev(devOptions) - return {app: result.app} + await dev(devOptions) + return {app: appContextResult.app} } } diff --git a/packages/app/src/cli/services/dev.ts b/packages/app/src/cli/services/dev.ts index 5db2ba095c6..eeffc7a30b1 100644 --- a/packages/app/src/cli/services/dev.ts +++ b/packages/app/src/cli/services/dev.ts @@ -74,7 +74,6 @@ export async function dev(commandOptions: DevOptions) { const {processes, graphiqlUrl, previewUrl} = await setupDevProcesses(config) await actionsBeforeLaunchingDevProcesses(config) await launchDevProcesses({processes, previewUrl, graphiqlUrl, config}) - return {app: config.localApp} } async function prepareForDev(commandOptions: DevOptions): Promise {