Replies: 1 comment
-
I see, so remote images fetched when building pages should be downloaded locally with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to use an image hosted on firebase with GatsbyImage?
My image is
https://firebasestorage.googleapis.com/v0/b/dineden-app.appspot.com/o/users%2FVucDBF1ovcQDESmdRt8sJhbdiph1%2Fmeals%2Fimages%2F1643756365344.jpg?alt=media&token=06819ff3-1f50-4a45-890e-e61988105b87
When I add it with
<img src={firstMealImageUrl} />
it shows it, but when I try<GatsbyImage src={firstMealImageUrl} alt="Meal Image" />
or when I try to fetch the data and pass it to GatsbyImage like so:then it fails with
[gatsby-plugin-image] Missing image prop
andFailed prop type: The prop "image" is marked as required in "GatsbyImage", but its value is "undefined".
How do you do this correctly?
Or perhaps I can use StaticImage somehow?
Beta Was this translation helpful? Give feedback.
All reactions