@ikas/storefront 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.es.js +4 -3
- package/build/index.js +4 -3
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -10894,9 +10894,10 @@ var Apollo = /** @class */ (function () {
|
|
|
10894
10894
|
});
|
|
10895
10895
|
var hostname = typeof window !== "undefined" ? window.location.hostname : null;
|
|
10896
10896
|
var httpLink = createHttpLink({
|
|
10897
|
-
uri:
|
|
10898
|
-
|
|
10899
|
-
|
|
10897
|
+
uri: IkasStorefrontConfig.apiUrlOverride ||
|
|
10898
|
+
(hostname && hostname !== "localhost"
|
|
10899
|
+
? "https://" + hostname + "/api/sf/graphql"
|
|
10900
|
+
: process.env.NEXT_PUBLIC_GQL_URL),
|
|
10900
10901
|
});
|
|
10901
10902
|
_this._client = new ApolloClient({
|
|
10902
10903
|
link: authLink.concat(httpLink),
|
package/build/index.js
CHANGED
|
@@ -10907,9 +10907,10 @@ var Apollo = /** @class */ (function () {
|
|
|
10907
10907
|
});
|
|
10908
10908
|
var hostname = typeof window !== "undefined" ? window.location.hostname : null;
|
|
10909
10909
|
var httpLink = createHttpLink({
|
|
10910
|
-
uri:
|
|
10911
|
-
|
|
10912
|
-
|
|
10910
|
+
uri: IkasStorefrontConfig.apiUrlOverride ||
|
|
10911
|
+
(hostname && hostname !== "localhost"
|
|
10912
|
+
? "https://" + hostname + "/api/sf/graphql"
|
|
10913
|
+
: process.env.NEXT_PUBLIC_GQL_URL),
|
|
10913
10914
|
});
|
|
10914
10915
|
_this._client = new ApolloClient({
|
|
10915
10916
|
link: authLink.concat(httpLink),
|