From 1242568efa272c050115172daf2f9ddf5dbe6e99 Mon Sep 17 00:00:00 2001 From: Duncan Uszkay Date: Fri, 2 Aug 2024 10:58:40 -0400 Subject: [PATCH] Don't link on deploy when api key is provided --- packages/app/src/cli/services/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/src/cli/services/context.ts b/packages/app/src/cli/services/context.ts index ca040e6942..6c088b74ec 100644 --- a/packages/app/src/cli/services/context.ts +++ b/packages/app/src/cli/services/context.ts @@ -430,7 +430,7 @@ export async function ensureDeployContext(options: DeployContextOptions): Promis const {reset, force, noRelease} = options let developerPlatformClient = options.developerPlatformClient // do the link here - const [remoteApp] = await fetchAppAndIdentifiers(options, developerPlatformClient, true, true) + const [remoteApp] = await fetchAppAndIdentifiers(options, developerPlatformClient, true, !options.apiKey) developerPlatformClient = remoteApp.developerPlatformClient ?? developerPlatformClient