How to set constant httpLink dynamically with shop_domain
tomlober opened this issue · 0 comments
tomlober commented
Hello,
In react-apollo you set httplink with URL.
How to set set this constant with shopify_domain vars ?
const httpLink = createHttpLink({ uri: MyURL })
const middlewareLink = setContext(() => ({
headers: {
'X-Shopify-Storefront-Access-Token': MyToken
}
}))
All the best,
ToM