1

We want to set up an uptime monitor for our single page React App which fetches videos from YouTube. I have tried to set up an uptime monitor using several online services, such as uptime and monitis. Both of these uptime monitoring sites search for specific HTML on a page. however, they are failing. My guess is because the html is rendered by the Single Page app.

How can we set up an uptime monitor therefore on our react app?

cereme
  • 280
  • 1
  • 18
Paul Preibisch
  • 4,115
  • 2
  • 27
  • 32
  • Why do you think the rendered html fail the uptime monitor? What do those monitor exactly work? – Pengson Dec 18 '19 at 02:27

1 Answers1

1

The uptime monitors would fail, as the crawling bots wouldn't get the final HTML render unless you've set up SSR or workers to handle this.

There are probably a few methods you could use that would get the job done, the easiest of which is updating your server script with an interval to ping off.

There's a few good discussions around on the topic, but some are really not suitable:

Heres one

Ping bot with slack which would be fun

If it's possible setting up some basic SSR would be handy too, any of the work would be done through your server script as opposed to the SPA itself

  • Hi there, I am not sure what you mean by "pdating your server script with an interval to ping off." or "unless you've set up SSR or workers to handle this." Can you please explain? Also, if you are on codementor.io, please let me know and perhaps I can hire you for a session – Paul Preibisch Dec 19 '19 at 02:59