Report build status on completion?
As we're working to get our sites set up, one thing we are thinking thru is how to let the team know a build ran (or failed). We expect most builds to be done automatically via webhooks or a github merge, so automating the build reporting is as important as web stats to be sure we know updates are working.
Are there any examples or docs that discuss:
I'd guess somebody has solved this problem, so we're happy to hear any stories about how people monitor this to ensure builds aren't failing over and over until somebody on a writing team/using a headless CMS yells "where's my stuff?!?!?!".
Are there any examples or docs that discuss:
- is this better done in the app/project itself, so the build command might be
npx @cloudflare/next-on-pages && npm run alertwhere alert would be a script we create to send some build details/status? (Downside: that adds to build time and also worry if that fails/throws that an otherwise good build might "fail" on an alert.) - can we 1-time-call a worker to send status to an API helping us monitor builds, uptime stats from 3rd parties, etc?
- we didn't see in docs or the admin screens any hints for sending status or reporting, but maybe we missed it?
I'd guess somebody has solved this problem, so we're happy to hear any stories about how people monitor this to ensure builds aren't failing over and over until somebody on a writing team/using a headless CMS yells "where's my stuff?!?!?!".