Add typed JSON output to hydrogen customer-account-push - #4097
Draft
gonzaloriestra wants to merge 1 commit into
Draft
gonzaloriestra wants to merge 1 commit into
gonzaloriestra wants to merge 1 commit into
Conversation
This was referenced Sep 28, 2026
gonzaloriestra
added this pull request to stack #4104
September 28, 2026 15:14
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-customer-account
branch
from
September 28, 2026 15:31
72d0ffa to
ce845f9
Compare
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-customer-account
branch
from
September 28, 2026 15:38
ce845f9 to
cd83e85
Compare
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-customer-account
branch
from
September 29, 2026 12:25
cd83e85 to
d7bb1c3
Compare
Contributor
|
Oxygen deployed a preview of your
Learn more about Hydrogen's GitHub integration. |
gonzaloriestra
force-pushed
the
gonzalo/hydrogen-json-customer-account
branch
from
September 29, 2026 14:53
d7bb1c3 to
d6913ec
Compare
fredericoo
approved these changes
Sep 29, 2026
This branch has not been deployed
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.
WHY are these changes introduced?
Automation needs the Customer Account URLs that were pushed, without parsing the terminal confirmation.
WHAT is this pull request doing?
Return a typed receipt with the storefront ID, redirect URI, JavaScript origin and logout URI. Add
--jsonand schema help, preserve dev-server cleanup, and forward the documented relative URI flags.Without
--json, the existing terminal presentation remains. Example JSON result:{"storefrontId":"gid://shopify/HydrogenStorefront/1","redirectUri":"https://example.com/account/authorize","javascriptOrigin":"https://example.com","logoutUri":"https://example.com"}HOW to test your changes?
pnpm --filter @shopify/cli-hydrogen test src/commands/hydrogen/customer-account-push.test.tsBuild and typecheck were checked at each layer. The full stack passed 498 tests (6 skipped), lint, and schema discovery for all 22 finite commands. Command-line smoke checks covered a successful unlink result, fatal project errors, watch-mode rejection and schema environment flags. Live authenticated Shopify operations have not been exercised.
Stack
Draft 3 of 9. Previous: #4096. Next: #4098. One changeset is included in #4103.