Commit 74c4b99
feat(wake): use checkoutUrl as GraphQL storefront endpoint (#1653)
* feat(wake): use checkoutUrl as GraphQL storefront endpoint
Point the Storefront GraphQL client to ${checkoutUrl}/graphql instead of
the hardcoded https://storefront-api.fbits.net/graphql.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(wake): normalize storefront GraphQL endpoint and add fallback
Address cubic review: use new URL("/graphql", ...) to avoid a
double-slash when checkoutUrl has a trailing slash, and fall back to
https://${account}.checkout.fbits.store when checkoutUrl is empty,
matching the checkoutApi client.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix(wake): fall back to storefront-api.fbits.net for GraphQL endpoint
Preserve the previous default host when checkoutUrl is empty instead of
pointing at the checkout store.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7ddbf13 commit 74c4b99
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
| |||
0 commit comments