Welcome to Prismic community, I will try to help you on this.
Can you share with me (in a direct message if necessary) the name of your repository as well as a link to the problematic image so that I can debug this?
I’ve received your direct message and I thank you for that,
I’ve checked with our production team, and most likely the issue is related to the usage of Gatsby image library
In fact Gatsby image does the same job as what Imgix does that Prismic use.
And as a result you double the processing time that result in some random timeouts.
Furthermore you can replace Gatsby image library with this Imgix library if you need some advanced processing that is in our opinion more efficient as it does it’s processing on rendering time and Imgix caches the result for you.
Please let me know if that doesn’t solve the problem for you,
Fares
Switching to Imgix is not feasible for us in this case. But searching on Gatsby’s own github issues I came across a similar problem and tried this:
GATSBY_CONCURRENT_DOWNLOAD=10 gatsby develop
and it seems to be working.
I suspect that the random timeouts happen because Gatsby is trying to download 300 images all at the same time from the server, and something breaks down somewhere?
Anyway hopefully this solves it!
1 Like
system
(system)
closed as resolved, flag & select 'Something Else' to reopen.
6
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.