Skip to content

Commit 4d8673d

Browse files
authored
Merge pull request #7225 from saurabhraghuvanshii/improve-build
fix workflows and improve logic
2 parents 171d11e + 06ccaca commit 4d8673d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env node */
22

33
const isProduction = process.env.NODE_ENV === "production";
4-
const isFullSiteBuild = process.env.BUILD_FULL_SITE !== "false";
4+
const isFullSiteBuild = process.env.BUILD_FULL_SITE === "true";
55
const HEAVY_COLLECTIONS = ["members", "integrations"];
66
const collectionIgnoreGlobs = isFullSiteBuild
77
? []

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"url": "https://layer5.io"
1111
},
1212
"scripts": {
13-
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 gatsby build",
13+
"build": "cross-env BUILD_FULL_SITE=true NODE_OPTIONS=--max-old-space-size=8192 gatsby build",
1414
"clean": "gatsby clean && rimraf node_modules",
15-
"develop": "cross-env NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
15+
"develop": "cross-env BUILD_FULL_SITE=true NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
1616
"develop:lite": "cross-env BUILD_FULL_SITE=false NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
1717
"dev": "npm run develop",
1818
"start": "npm run develop",

0 commit comments

Comments
 (0)