mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
shopify: changes
This commit is contained in:
@@ -3,7 +3,6 @@ import fetchGraphqlApi from './utils/fetch-graphql-api'
|
||||
|
||||
export interface ShopifyConfig extends CommerceAPIConfig {}
|
||||
|
||||
// TODO(bc)
|
||||
const API_URL =
|
||||
process.env.SHOPIFY_STORE_DOMAIN ||
|
||||
process.env.NEXT_PUBLIC_SHOPIFY_STORE_DOMAIN
|
||||
|
@@ -21,7 +21,7 @@ const fetchGraphqlApi: GraphQLFetcher = async (
|
||||
fetchOptions
|
||||
) => {
|
||||
const config = getConfig()
|
||||
const url = `https://${config.commerceUrl}/api/2020-10/graphql.json`
|
||||
const url = `https://${config.commerceUrl}/api/2021-01/graphql.json`
|
||||
|
||||
const res = await fetch(url, {
|
||||
...fetchOptions,
|
||||
|
Reference in New Issue
Block a user