Configure Customer Account URLs during local HTTPS development - #3955
Open
fredericoo wants to merge 2 commits into
Open
Configure Customer Account URLs during local HTTPS development#3955fredericoo wants to merge 2 commits into
fredericoo wants to merge 2 commits into
Conversation
fredericoo
force-pushed
the
fb-local-https-vite-plugin-mkcert
branch
2 times, most recently
from
August 19, 2026 16:17
c9897c6 to
b5b5d11
Compare
Assisted-By: devx/05def498-8bdd-48d0-bd5e-35e4667a2f3d
Assisted-By: devx/05def498-8bdd-48d0-bd5e-35e4667a2f3d
fredericoo
force-pushed
the
fb-local-https-vite-plugin-caapi
branch
from
August 20, 2026 12:43
9d924ac to
e6bb9c6
Compare
fredericoo
marked this pull request as ready for review
August 20, 2026 12:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Depends on #3953.
TL;DR: Complete the local HTTPS setup by automatically registering the local Customer Account callback, JavaScript origin, and logout URLs.
Before
The local HTTPS plugin provisions and serves trusted certificates, but developers still need to link a storefront and copy the three Customer Account values into Shopify admin manually.
After
When
dev:httpsstarts outside CI, the plugin checks Shopify CLI compatibility, links an unlinked Hydrogen storefront, and runsshopify hydrogen customer-account-pushwith the bound local origin and portless JavaScript origin. CI and failures fall back to printing the exact manual values without stopping development.What this changes
@shopify/cli-hydrogen13.0.4 or later for automatic setup.shopify hydrogen linkwhen needed.dev:httpsand detects them throughnpm_lifecycle_event.dev:httpsserver.Developer impact
Extends the existing minor changeset for
@shopify/hydrogen. No new option is required: enabledlocalHttps()development automatically attempts Customer Account setup and retains the existing manual fallback.Risk
dev:httpscan interactively link a project and update the linked storefront's Customer Account URLs.How to Test
@shopify/cli-hydrogen13.0.4 or later (not out yet lol sorry)pnpm --filter @shopify/hydrogen-template-react-router dev:https.https://local.tryhydrogen.dev:5173/account/authorize,https://local.tryhydrogen.dev, andhttps://local.tryhydrogen.dev:5173.https://local.tryhydrogen.dev:5173and complete a Customer Account login/logout flow.