-
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
No documention on using files cached by createRemoteFileNode #5147
Comments
Makes sense! Would love a quick example added of how you can then query the local file. |
Is there any existing use case that you can point me to, so that I can work on a PR? @KyleAMathews |
Isn't that specifically for images? Wouldn't it be better to add an example for general files so that they include linking documents, videos and everything else as well. @KyleAMathews |
Your hypothetical example can be about whatever you'd like it to be :-) |
So in cases of files, I was thinking the data URL can be queried by |
No — |
Oh I wasn't aware of that. So in the case of remote files, say a PDF and maybe even a mp4 video that's stored in the CMS, what's the best approach to sourcing these files in a plugin? @KyleAMathews Also, I'll try to add an example usage to the wordpress handling images only then. |
Before I close this issue, I'd really appreciate a bit of help from the community on how to handle remote files as mentioned above! Any suggestions on best approach are appreciated! |
While working with remote files, the current documentation that we wrote is pretty clear on how to use the function, but I feel we need to add an example of how to use such files in a Gatsby project.
@m-allanson @KyleAMathews
The text was updated successfully, but these errors were encountered: