@nuskin/ns-product-lib 2.14.5 → 2.14.6
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/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`;
|