@griddo/cx 1.74.17 → 1.74.19

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/gatsby-node.js CHANGED
@@ -30,6 +30,7 @@ let updatedSites;
30
30
  let createdPages = [];
31
31
  let buildProcessData = {};
32
32
  const componentsVersion = getComponentsVersion();
33
+ const renderId = process.env.RENDERID || new Date().valueOf();
33
34
 
34
35
  // -----------------------------------------------------------------------------
35
36
  // Component System alias
@@ -184,7 +185,7 @@ exports.createPages = async ({ actions }) => {
184
185
  // Template data with the distributor data added.
185
186
  const distributorTemplate = await DistributorService.getDistributorData(
186
187
  page,
187
- cache
188
+ renderId,
188
189
  );
189
190
 
190
191
  additionalInfo.navigations = NavService.getPageNavigations(page);
@@ -198,27 +199,27 @@ exports.createPages = async ({ actions }) => {
198
199
  // Multi-page (pagination) or single-page
199
200
  isList
200
201
  ? await utils.renderListPages(
201
- {
202
- rootPage: page,
203
- pages: utils.getList(distributorTemplate),
204
- isRoot: false,
205
- defaultLang,
206
- distributorTemplate,
207
- },
208
- additionalInfo,
209
- actions.createPage
210
- )
202
+ {
203
+ rootPage: page,
204
+ pages: utils.getList(distributorTemplate),
205
+ isRoot: false,
206
+ defaultLang,
207
+ distributorTemplate,
208
+ },
209
+ additionalInfo,
210
+ actions.createPage
211
+ )
211
212
  : await utils.renderPage(
212
- {
213
- ...page,
214
- template: distributorTemplate,
215
- isRoot: false,
216
- defaultLang,
217
- multiPageElements,
218
- },
219
- additionalInfo,
220
- actions.createPage
221
- );
213
+ {
214
+ ...page,
215
+ template: distributorTemplate,
216
+ isRoot: false,
217
+ defaultLang,
218
+ multiPageElements,
219
+ },
220
+ additionalInfo,
221
+ actions.createPage
222
+ );
222
223
 
223
224
  buildProcessData[siteId].publishHashes.push(page.hash);
224
225
  }
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.74.17",
4
+ "version": "1.74.19",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -65,7 +65,7 @@
65
65
  "react-helmet": "^6.0.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@griddo/eslint-config-back": "^1.74.17",
68
+ "@griddo/eslint-config-back": "^1.74.19",
69
69
  "eslint": "^7.5.0",
70
70
  "eslint-plugin-node": "^11.1.0",
71
71
  "eslint-plugin-react": "7.14.3",
@@ -97,5 +97,5 @@
97
97
  "publishConfig": {
98
98
  "access": "public"
99
99
  },
100
- "gitHead": "16cd94e030f7f72a3af40c3b44b2110f7d875c23"
100
+ "gitHead": "404937904e9a41b05f15e0a4ef2a33c00a94ff28"
101
101
  }
@@ -58,6 +58,7 @@ const runExportDomain = async domain => {
58
58
  const run = getEnvRunner({
59
59
  DOMAIN: domain,
60
60
  ASSET_PREFIX: getAssetPrefix(domain),
61
+ RENDERID: new Date().valueOf(),
61
62
  });
62
63
  const domainDestDirPath = path.resolve(destDirPath, domain);
63
64