Skip to content

Commit cac37a9

Browse files
DarioDiempieh
authored andcommitted
feat(create-remote-file-node): add url field to downloaded file nodes (#12582)
<!-- Have any questions? Check out the contributing docs at https://gatsby.dev/contribute, or ask in this Pull Request and a Gatsby maintainer will be happy to help :) --> ## Description <!-- Write a brief description of the changes introduced by this PR --> ## Related Issues <!-- Link to the issue that is fixed by this PR (if there is one) e.g. Fixes #1234, Addresses #1234, Related to #1234, etc. -->
1 parent c67033e commit cac37a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/gatsby-source-filesystem/src/create-remote-file-node.js

+1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ async function processRemoteNode({
253253
// Create the file node.
254254
const fileNode = await createFileNode(filename, createNodeId, {})
255255
fileNode.internal.description = `File "${url}"`
256+
fileNode.url = url
256257
fileNode.parent = parentNodeId
257258
// Override the default plugin as gatsby-source-filesystem needs to
258259
// be the owner of File nodes or there'll be conflicts if any other

0 commit comments

Comments
 (0)