Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

How to set constant httpLink dynamically with shop_domain #100

Open

Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions