@nuskin/ns-product-lib 2.14.5 → 2.14.6
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/productData.js +4 -2
package/package.json
CHANGED
package/src/productData.js
CHANGED
@@ -106,10 +106,12 @@ const ProductData = {
|
|
106
106
|
},
|
107
107
|
|
108
108
|
getProductFromLegacy: async function (skus, locale) {
|
109
|
-
|
109
|
+
let marketConfig = await contentstack.getAEMConfig();
|
110
110
|
|
111
111
|
if (marketConfig === null) {
|
112
|
-
|
112
|
+
marketConfig = {
|
113
|
+
aws_url: "https://testapi.cloud.nuskin.com/"
|
114
|
+
}
|
113
115
|
}
|
114
116
|
|
115
117
|
const lambdaUrl = `${marketConfig.aws_url}/productData/v1`;
|