stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.04k stars 391 forks source link

Using react-snap with firestore #446

Closed leo1200 closed 4 years ago

leo1200 commented 4 years ago

I'd like to use react-snap for https://zweig.lernzettel.org. I, however, am using firestore on this site. Networkidle0 is never fulfilled (thus leading to a timeout error). I tried to add waitUntil / waitFor to the puppeteer options in the react-snap options in package.json but it did not seem to have any effect. Any ideas on how to solve the issue?

leo1200 commented 4 years ago

Changing networkidle0 to networkidle2 in the goto call in the puppeteer_utils.js in node_modules turned out to be suffiecient.