Skip to content

Commit d8890ac

Browse files
committed
Set parcel workers to 0 to fix cache segfaults
1 parent 0dc9435 commit d8890ac

File tree

3 files changed

+9
-36
lines changed

3 files changed

+9
-36
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ module.exports = {
6161
repositoryUrl: 'https://github.com/npm/documentation',
6262
},
6363
flags: {
64-
DEV_SSR: !!process.env.DEV_SSR,
64+
DEV_SSR: !!process.env.GATSBY_DEV_SSR,
6565
},
6666
plugins: [
6767
'gatsby-plugin-styled-components',

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
},
88
"private": true,
99
"scripts": {
10-
"develop": "./scripts/gatsby.sh develop",
11-
"develop:ssr": "DEV_SSR=true ./scripts/gatsby.sh develop",
12-
"build": "./scripts/gatsby.sh build --verbose --log-pages",
13-
"clean": "gatsby clean",
14-
"serve": "gatsby serve",
10+
"//": "Fix for parcel segfaults",
11+
"//": "https://github.com/parcel-bundler/parcel/issues/7702",
12+
"gatsby": "PARCEL_WORKERS=0 gatsby",
13+
"develop": "npm run gatsby -- develop",
14+
"develop:ssr": "GATSBY_DEV_SSR=true npm run develop",
15+
"build": "npm run gatsby -- build --verbose --log-pages",
16+
"clean": "npm run gatsby -- clean",
17+
"serve": "npm run gatsby -- serve",
1518
"lint": "eslint \"**/*.js\"",
1619
"postlint": "template-oss-check",
1720
"template-oss-apply": "template-oss-apply --force",

scripts/gatsby.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)