@griddo/cx 1.75.96 → 1.75.97

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.
Files changed (2) hide show
  1. package/gatsby-node.js +5 -4
  2. package/package.json +3 -3
package/gatsby-node.js CHANGED
@@ -182,6 +182,7 @@ exports.createPages = async ({ actions }) => {
182
182
  helpers.log('info', 'VALID PAGES -->', validPagesIds);
183
183
 
184
184
  const renderPageProcess = async pageId => {
185
+ const pageAdditionalInfo = JSON.parse(JSON.stringify(additionalInfo));
185
186
  createdPages.push(pageId);
186
187
 
187
188
  // Get page data
@@ -199,7 +200,7 @@ exports.createPages = async ({ actions }) => {
199
200
  renderId
200
201
  );
201
202
 
202
- additionalInfo.navigations = NavService.getPageNavigations(page);
203
+ pageAdditionalInfo.navigations = NavService.getPageNavigations(page);
203
204
 
204
205
  const isList = page?.mode === 'list';
205
206
 
@@ -218,7 +219,7 @@ exports.createPages = async ({ actions }) => {
218
219
  defaultLang,
219
220
  distributorTemplate,
220
221
  },
221
- additionalInfo,
222
+ pageAdditionalInfo,
222
223
  actions.createPage
223
224
  )
224
225
  : await utils.renderPage(
@@ -229,14 +230,14 @@ exports.createPages = async ({ actions }) => {
229
230
  defaultLang,
230
231
  multiPageElements,
231
232
  },
232
- additionalInfo,
233
+ pageAdditionalInfo,
233
234
  actions.createPage
234
235
  );
235
236
 
236
237
  buildProcessData[siteId].publishHashes.push(page.hash);
237
238
  };
238
239
 
239
- const cxThreads = CX_THREADS && parseInt(CX_THREADS) || 10;
240
+ const cxThreads = (CX_THREADS && parseInt(CX_THREADS)) || 10;
240
241
  helpers.log('info', `Processing createPages with ${cxThreads} threads`);
241
242
 
242
243
  await import('p-limit').then(async pLimit => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.75.96",
4
+ "version": "1.75.97",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -66,7 +66,7 @@
66
66
  "react-helmet": "^6.0.0"
67
67
  },
68
68
  "devDependencies": {
69
- "@griddo/eslint-config-back": "^1.75.96",
69
+ "@griddo/eslint-config-back": "^1.75.97",
70
70
  "eslint": "^7.5.0",
71
71
  "eslint-plugin-node": "^11.1.0",
72
72
  "eslint-plugin-react": "7.14.3",
@@ -98,5 +98,5 @@
98
98
  "publishConfig": {
99
99
  "access": "public"
100
100
  },
101
- "gitHead": "53f9a25f0448b20bbca0ce4b3d55c0771c4f3726"
101
+ "gitHead": "6333a38bcb3801224354302756dd2e5d7df1586f"
102
102
  }