-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gatsby-core-utils): Add file download functions #29531
Conversation
32d4d43
to
bea141d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this solve the issue entirely though? We use both remoteFileNode and createFileNode. This appears to only move the former out of gatsby-source-filesystem?
The idea would be that we stop creating file nodes, and just download the file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! This is going to be helpful for other plugins as well. Can you port some tests over?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay tests!
* feat(gatsby-core-utils): Add file download functions * skiplibcheck * Export interface * Port tests * Fix type Co-authored-by: gatsbybot <[email protected]>
Move the file download function
fetchRemoteNode
to gatsby-core-utils and rename it tofetchRemoteFile