@griddo/cx 1.55.1 → 1.55.5
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 +1 -1
- package/package.json +3 -3
- package/src/services/robots.js +2 -1
package/gatsby-node.js
CHANGED
|
@@ -23,7 +23,7 @@ const publicBaseUrl = process.env.PUBLIC_API_URL;
|
|
|
23
23
|
const IS_SERVE = !!process.env.IS_SERVE && JSON.parse(process.env.IS_SERVE);
|
|
24
24
|
const BUILD_MODE = process.env.CXBRANCH;
|
|
25
25
|
const isIE = process.env.CLIENT === 'IEEDU';
|
|
26
|
-
const isGARRIGUES = process.env.CLIENT
|
|
26
|
+
const isGARRIGUES = process.env.CLIENT && process.env.CLIENT.startsWith('CEG');
|
|
27
27
|
|
|
28
28
|
// Share info between actions (createPages and onPostBuild)
|
|
29
29
|
let updatedSites;
|
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.55.
|
|
4
|
+
"version": "1.55.5",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-helmet": "^6.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@griddo/eslint-config-back": "^1.55.
|
|
64
|
+
"@griddo/eslint-config-back": "^1.55.5",
|
|
65
65
|
"eslint": "^7.5.0",
|
|
66
66
|
"eslint-plugin-node": "^11.1.0",
|
|
67
67
|
"eslint-plugin-react": "7.14.3",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"publishConfig": {
|
|
94
94
|
"access": "public"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "b403746852612c56d6acf1f6a844e86fee1e4444"
|
|
97
97
|
}
|
package/src/services/robots.js
CHANGED
|
@@ -13,7 +13,8 @@ class RobotsService {
|
|
|
13
13
|
|
|
14
14
|
async loadRobots() {
|
|
15
15
|
try {
|
|
16
|
-
|
|
16
|
+
const apiRobots = await api.get(this.ENDPOINT);
|
|
17
|
+
this.robots = apiRobots.filter(r => !!r.path && !!r.content) || [];
|
|
17
18
|
} catch (e) {
|
|
18
19
|
helpers.log('error', `${this.constructor.name}: ${e.message}`);
|
|
19
20
|
}
|