Skip to content

Commit

Permalink
Merge pull request #4261 from Shopify/dunk.dont-link
Browse files Browse the repository at this point in the history
Don't link on deploy when api key is provided
  • Loading branch information
amcaplan committed Aug 5, 2024
2 parents 5f39c47 + 3b1ec3d commit dfc5d76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/metal-foxes-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/app': patch
---

Disable app linking prompt on deploy when API key is provided
2 changes: 1 addition & 1 deletion packages/app/src/cli/services/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit dfc5d76

Please sign in to comment.