From e8583e1be75d35e4eefe43396b22c6e37a41e12d Mon Sep 17 00:00:00 2001 From: Daniele Guido Date: Sat, 9 Mar 2024 23:03:03 +0100 Subject: [PATCH] Update gatsby-node.js --- gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatsby-node.js b/gatsby-node.js index b41eab6..05675b3 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -98,7 +98,7 @@ exports.createPages = async function ({ actions, graphql }) { }) fs.writeFileSync( - `${__dirname}/static/data/notebooks/${node.name}.json`, + path.join(DataDir, `/notebooks/${node.name}.json`), JSON.stringify( { ...notebooksMap[node.name],