@nuskin/ns-product-lib 2.14.5 → 2.14.6-cx24-6388.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "2.14.5",
3
+ "version": "2.14.6-cx24-6388.1",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -106,10 +106,12 @@ const ProductData = {
106
106
  },
107
107
 
108
108
  getProductFromLegacy: async function (skus, locale) {
109
- const marketConfig = await contentstack.getAEMConfig();
109
+ let marketConfig = await contentstack.getAEMConfig();
110
110
 
111
111
  if (marketConfig === null) {
112
- return null;
112
+ marketConfig = {
113
+ aws_url: "https://testapi.cloud.nuskin.com/"
114
+ }
113
115
  }
114
116
 
115
117
  const lambdaUrl = `${marketConfig.aws_url}/productData/v1`;