From cac37a93402af3b88a37fefce1878be470df1781 Mon Sep 17 00:00:00 2001 From: DarioDiem <40043011+DarioDiem@users.noreply.github.com> Date: Thu, 14 Mar 2019 12:42:15 -0600 Subject: [PATCH] feat(create-remote-file-node): add `url` field to downloaded file nodes (#12582) ## Description ## Related Issues --- packages/gatsby-source-filesystem/src/create-remote-file-node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gatsby-source-filesystem/src/create-remote-file-node.js b/packages/gatsby-source-filesystem/src/create-remote-file-node.js index 9f88fa19d1974..330da31e12c55 100644 --- a/packages/gatsby-source-filesystem/src/create-remote-file-node.js +++ b/packages/gatsby-source-filesystem/src/create-remote-file-node.js @@ -253,6 +253,7 @@ async function processRemoteNode({ // Create the file node. const fileNode = await createFileNode(filename, createNodeId, {}) fileNode.internal.description = `File "${url}"` + fileNode.url = url fileNode.parent = parentNodeId // Override the default plugin as gatsby-source-filesystem needs to // be the owner of File nodes or there'll be conflicts if any other