Skip to content

Commit

Permalink
remove apiUrlParam
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpprieto committed Jan 6, 2025
1 parent a4fef23 commit 4a9b509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ShopResource from './shop-resource';
import CheckoutResource from './checkout-resource';
import ImageResource from './image-resource';
import {version} from '../package.json';
import {apiUrlParam} from '../api-url-param';

// GraphQL
import types from '../schema.json';

Expand Down Expand Up @@ -39,7 +39,7 @@ class Client {
* @param {Config} config An instance of {@link Config} used to configure the Client.
*/
constructor(config, GraphQLClientClass = GraphQLJSClient, fetchFunction) {
const url = `https://${config.domain}/api/2025-01/graphql?${apiUrlParam}`;
const url = `https://${config.domain}/api/2025-01/graphql`;

const headers = {
'X-SDK-Variant': 'javascript',
Expand Down

0 comments on commit 4a9b509

Please sign in to comment.