@griddo/cx 1.75.73 → 1.75.75
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 +4 -4
- package/package.json +3 -3
package/gatsby-node.js
CHANGED
|
@@ -24,7 +24,7 @@ const publicBaseUrl = process.env.PUBLIC_API_URL;
|
|
|
24
24
|
const instance = process.env.REACT_APP_INSTANCE;
|
|
25
25
|
const IS_SERVE = !!process.env.IS_SERVE && JSON.parse(process.env.IS_SERVE);
|
|
26
26
|
const BUILD_MODE = process.env.CXBRANCH;
|
|
27
|
-
const
|
|
27
|
+
const CX_THREADS = process.env.CX_THREADS;
|
|
28
28
|
|
|
29
29
|
// Share info between actions (createPages and onPostBuild)
|
|
30
30
|
let updatedSites;
|
|
@@ -234,11 +234,11 @@ exports.createPages = async ({ actions }) => {
|
|
|
234
234
|
buildProcessData[siteId].publishHashes.push(page.hash);
|
|
235
235
|
};
|
|
236
236
|
|
|
237
|
-
const
|
|
238
|
-
helpers.log('info', `Processing createPages with ${
|
|
237
|
+
const cxThreads = CX_THREADS && parseInt(CX_THREADS) || 10;
|
|
238
|
+
helpers.log('info', `Processing createPages with ${cxThreads} threads`);
|
|
239
239
|
|
|
240
240
|
await import('p-limit').then(async pLimit => {
|
|
241
|
-
const limit = pLimit.default(
|
|
241
|
+
const limit = pLimit.default(cxThreads);
|
|
242
242
|
const pagesToRender = validPagesIds.map(id =>
|
|
243
243
|
limit(() => renderPageProcess(id))
|
|
244
244
|
);
|
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.
|
|
4
|
+
"version": "1.75.75",
|
|
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.
|
|
69
|
+
"@griddo/eslint-config-back": "^1.75.75",
|
|
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": "
|
|
101
|
+
"gitHead": "f777266b224f1fdb3a20faacf8e28d6413dd94f2"
|
|
102
102
|
}
|