@griddo/cx 1.74.18 → 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 +22 -21
- package/package.json +3 -3
- package/scripts/griddo-exporter.js +1 -0
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
|
-
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
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.
|
|
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.
|
|
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": "
|
|
100
|
+
"gitHead": "404937904e9a41b05f15e0a4ef2a33c00a94ff28"
|
|
101
101
|
}
|