This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Standardize ShopifyProvider and createStorefrontClient regarding storeDomain
#73
Labels
storeDomain
#73
createStorefrontClient takes in storeDomain like so:
ShopifyProvider takes in storeDomain like so:
That's annoying and unnecessary. In addition, #70 was just merged that adds a function for getting the fully-qualified URL to createStorefrontClient, which includes the
https://
. So it would be good to add that to ShopifyProvider, too.I feel like ideally we go the createStorefrontClient route and only ask for the name (e.g. just
hydrogen-preview
, and nothydrogen-preview.myshopify.com
), but I'm open to other ideas.#73 (comment)
The text was updated successfully, but these errors were encountered: