Skip to content

Commit 073caef

Browse files
authored
chore(docs): Update processing external images guide (#34388)
* initial * Revert "initial" This reverts commit 3794b9c. * update doc
1 parent ad4b8da commit 073caef

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/docs/how-to/images-and-media/preprocessing-external-images.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ exports.createSchemaCustomization = ({ actions }) => {
5757
exports.onCreateNode = async ({
5858
node,
5959
actions: { createNode, createNodeField },
60-
store,
61-
cache,
6260
createNodeId,
61+
getCache,
6362
}) => {
6463
// For all MarkdownRemark nodes that have a featured image url, call createRemoteFileNode
6564
if (
@@ -71,8 +70,7 @@ exports.onCreateNode = async ({
7170
parentNodeId: node.id, // id of the parent node of the fileNode you are going to create
7271
createNode, // helper function in gatsby-node to generate the node
7372
createNodeId, // helper function in gatsby-node to generate the node id
74-
cache, // Gatsby's cache
75-
store, // Gatsby's Redux store
73+
getCache,
7674
})
7775

7876
// if the file was created, extend the node with "localFile"

0 commit comments

Comments
 (0)