Generating screenshots with Puppeteer: Build and Deploy are successful but site is empty

Hello there!

I am using npm and Puppeteer to generate about two hundreds screenshots and hosting them on Netlify. Deploys are hooked to another Git repository. Build and Deploy are always successful. But every now and then, it seems like my site is just emptied and not a single screenshot is available anymore. I’m pretty clueless about what’s going on here and don’t even know where to start troubleshooting this. Any help and guidance is welcomed.

Links:

  • Netlify site : screenshots-caniemail.netlify.app or screenshots.caniemail.com
  • Source code : https://github.com/hteumeuleu/caniemail-embed-screenshots
  • Build log: Netlify App
  • Build settings: https://i.imgur.com/C3o4bFE.png

hi there, can you say a little more about what you mean exactly by “my site is just emptied and not a single screenshot is available anymore”? Are you saying that content that was previously available is being deleted?

Hello. I don’t know for sure that’s what is happening, but my impression is indeed that content previously available is being deleted. For example, I pushed a commit this morning which triggered a new build and now some screenshots are missing (ex: https://screenshots.caniemail.com/css-at-media-prefers-reduced-motion.png). Even the _redirects file which should be there on the root of the domain is no longer there.

Here’s the latest deploy log: Netlify App

Any help is appreciated.

Heya - seems like you renamed or deleted the site in the meantime - if they still exist, could you link me to those deploy logs at their new location so I can take a closer look?