Skip to content

Commit

Permalink
feat(create-remote-file-node): add url field to downloaded file nod…
Browse files Browse the repository at this point in the history
…es (gatsbyjs#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 gatsbyjs#1234, Addresses gatsbyjs#1234, Related to gatsbyjs#1234, etc.
-->
  • Loading branch information
DarioDiem authored and pieh committed Mar 14, 2019
1 parent 58723ac commit 643153a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/create-remote-file-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 643153a

Please sign in to comment.