checkout-sdk-js
checkout-sdk-js copied to clipboard
config links should use current domain, not hardcode the stores live domain
If you are developing a custom checkout locally with stencil, your store is likely running on localhost:3000 or something similar. However, when you access the state.data.getConfig().links object, all of the links refer to the store's live domain, rather than localhost. For example, the cart link will be https://mystore.com/cart.php rather than https://localhost:3000/cart.php.
Can these be updated?