styxlab / gatsby-theme-try-ghost

A Gatsby theme to build flaring fast blogs from headless Ghost CMS
MIT License
136 stars 56 forks source link

Some images has processed srcset but only renders the placeholder #280

Closed lacsinagramar closed 3 years ago

lacsinagramar commented 3 years ago

I have blog posts on ghost, all has feature_image but some of the featured image aren't rendered.

image

Seems like the files processed aren't existing because when I hover my cursor to the image link in the inspect element there is no popover showing up.

styxlab commented 3 years ago

This is odd, because the placeholder is made from the original image. Could you please link to a reproduced example, so I can test it out on my computer? Even bore that, could you please show your build logs?

sawilde commented 3 years ago

^ I am seeing similar to the above but only when I am developing locally (ie yarn develop) when I publish via netlify and create the static site all is good.

lacsinagramar commented 3 years ago

@sawilde Thanks, it does work when built on netlify.

styxlab commented 3 years ago

It could be due to network interruptions during the build process which are less likely when images are fetched from a provider with gigabit connections. Another reason I can think of is rate limiting that you can control in the config of your Ghost CMS.