Skip to content

Commit 86c4cac

Browse files
committed
fix: disable problematic Gatsby flags and configure MDX plugin
- Disable PARALLEL_SOURCING to reduce memory pressure during node processing - Disable DEV_SSR to avoid SSR-related buffer issues during development - Add explicit mdxOptions configuration to gatsby-plugin-mdx to ensure compatibility
1 parent 094c9b7 commit 86c4cac

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

gatsby-config.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = {
1313
},
1414
flags: {
1515
FAST_DEV: true,
16-
PARALLEL_SOURCING: true,
16+
PARALLEL_SOURCING: false, // Disable parallel sourcing to reduce memory pressure
17+
DEV_SSR: false, // Disable SSR to avoid build issues
1718
},
1819
trailingSlash: "never",
1920
plugins: [
@@ -473,6 +474,11 @@ module.exports = {
473474
resolve: "gatsby-plugin-mdx",
474475
options: {
475476
extensions: [".mdx", ".md"],
477+
mdxOptions: {
478+
remarkPlugins: [],
479+
rehypePlugins: [],
480+
},
481+
gatsbyRemarkPlugins: [],
476482
},
477483
},
478484
{
@@ -631,4 +637,4 @@ module.exports = {
631637
"gatsby-plugin-meta-redirect",
632638
// make sure this is always the last one
633639
],
634-
};
640+
};

0 commit comments

Comments
 (0)