From cb535b4ef019b3b3db7c473f5088f97ea1ae1971 Mon Sep 17 00:00:00 2001 From: Shivam Gupta Date: Sun, 29 Dec 2024 11:38:02 +0000 Subject: [PATCH] rm node cache flag Signed-off-by: Shivam Gupta --- gatsby-config.js | 2 +- gatsby-node.js | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 773e33bffba3..c6fab89b8e09 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -14,7 +14,7 @@ module.exports = { flags: { FAST_DEV: true, PARALLEL_SOURCING: true, - PRESERVE_FILE_DOWNLOAD_CACHE: true, + // PRESERVE_FILE_DOWNLOAD_CACHE: true, DETECT_NODE_MUTATIONS: true, PARTIAL_HYDRATION: true }, diff --git a/gatsby-node.js b/gatsby-node.js index 9f44ad37dbb9..c38e2531ceed 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -905,15 +905,6 @@ exports.onCreateNode = ({ node, actions, getNode }) => { onCreateChapterNode({ actions, node, slug }); return; } - - if (node.internal.type === "Mdx") { - if (!node.frontmatter.thumbnail) { - node.frontmatter.thumbnail = null; - } - if (!node.frontmatter.darkthumbnail) { - node.frontmatter.darkthumbnail = null; - } - } } } };