checkout-sdk-js icon indicating copy to clipboard operation
checkout-sdk-js copied to clipboard

config links should use current domain, not hardcode the stores live domain

Open flyingL123 opened this issue 5 years ago • 0 comments

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?

flyingL123 avatar Apr 20 '20 18:04 flyingL123