-
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
fix(gatsby-source-filesystem): Use new FileType methods to read file extension #27559
Conversation
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.
lgtm. Thank you 💜
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.
Actually, tests show that bumping the package requires more changes
@pvdz Test suite still failing in CI, but seems unrelated to any changes in this PR. FWIW, test suite ran and passed locally. |
What is the state of this PR? I'm trying to use createRemoteFileNode to get profile images from Azure DevOps and the format is like aad.[somecode] and that doesn't work with the current createRemoteFileNode |
Let me rebase this for you and see whether tests are broken or just need to be rebased |
--> #28156 |
Description
Uses
fromFile()
,fromBuffer()
methods to infer filetype/extension from the file/buffer, if not specified.This fixes an issue where
createRemoteFileNode
may fail on URLs without an extension in the path.Documentation
Related Issues