Skip to content

Commit 4bcb4fd

Browse files
authored
Merge pull request #6864 from saurabhraghuvanshii/test
made site build fast
2 parents 268f2fa + e6a81d8 commit 4bcb4fd

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

gatsby-config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ module.exports = {
1414
flags: {
1515
FAST_DEV: true,
1616
PARALLEL_SOURCING: false, // Disable parallel sourcing to reduce memory pressure
17-
DEV_SSR: false, // Disable SSR to avoid build issues
1817
},
1918
trailingSlash: "never",
2019
plugins: [
@@ -467,13 +466,15 @@ module.exports = {
467466
resolve: "gatsby-plugin-mdx",
468467
options: {
469468
extensions: [".mdx", ".md"],
469+
gatsbyRemarkPlugins: [],
470470
mdxOptions: {
471471
remarkPlugins: [],
472472
rehypePlugins: [],
473473
},
474-
gatsbyRemarkPlugins: [],
475474
},
476475
},
476+
"gatsby-plugin-sharp",
477+
"gatsby-transformer-sharp",
477478
{
478479
resolve: "gatsby-source-filesystem",
479480
options: {

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": "gatsby build",
13+
"build": "cross-env 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=10096 gatsby develop",
15+
"develop": "cross-env NODE_OPTIONS=--max-old-space-size=8192 env-cmd -f .env.development gatsby develop",
1616
"dev": "npm run develop",
1717
"start": "npm run develop",
1818
"serve": "gatsby serve",

0 commit comments

Comments
 (0)