Skip to main content

Deploy checks

Send us one request when a release goes live. We re-check every page you watch on that site, and send one alert with what changed. If nothing changed, we stay quiet.

They're on every plan. More about deploy checks.

1. Make a deploy token​

Go to Settings, then Alerts, then Deploy checks. Name the token, lock it to one site if you like, and press Make a deploy token. Copy it straight away, because we only show it once.

A deploy token can only tell us about a deploy and read how its check is going.

2. Add the request to your deploy​

Save the token as a secret called LW_DEPLOY_TOKEN, and swap example.com for a site you already watch. Send the request once the new version is live.

GitHub Actions​

Add this as the last step of your deploy job.

- name: Tell Little Warden about this deploy
run: |
curl -fsS -X POST https://littlewarden.com/api/v2/deploys \
-H "Authorization: Bearer ${{ secrets.LW_DEPLOY_TOKEN }}" \
-d site=example.com \
-d version=${{ github.ref_name }}@${{ github.sha }} \
-d environment=production \
-d source=github \
-d url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

Vercel​

Run this after vercel deploy --prod, or at the end of your build command. The delay gives the new version two minutes to go live.

curl -fsS -X POST https://littlewarden.com/api/v2/deploys \
-H "Authorization: Bearer $LW_DEPLOY_TOKEN" \
-d site=example.com \
-d version=$VERCEL_GIT_COMMIT_SHA \
-d environment=$VERCEL_ENV \
-d source=vercel \
-d delay=120

Anything else​

POST https://littlewarden.com/api/v2/deploys
Authorization: Bearer <your deploy token>
Content-Type: application/json

{ "site": "example.com", "version": "v2.14.0", "environment": "production", "delay": 0 }
Field
siteRequired. A site you already watch
versionShown in the alert
environmentShown in the alert, like production
sourcegithub, vercel, manual or webhook
urlA link to the run, shown in the alert
delaySeconds to wait before checking, up to 30 minutes

3. Ask how it's going, if you want to​

We answer 202 straight away, so your deploy doesn't wait for us. The reply has a status_url. Request it with the same token to get the status (received, checking, done, failed or cancelled), how many pages are done and, once it's finished, the number of changes.

We report what changed. We don't give a pass or fail, so your pipeline can read the number and decide.

What we re-check​

Status codes and content checks, robots.txt and indexing, sitemaps, the 404 page, www and https redirects, headers, SSL, and the home page's Lighthouse scores if they're on.

Domain expiry, nameservers, MX records and uptime carry on as usual. Downtime and expiry alerts never wait for a deploy check.

Good to know​

  • We only check the pages you've added. We don't crawl the rest of the site.
  • Bigger sites take longer, because we space out requests to your server.
  • One check runs per site at a time. A newer deploy replaces one that's still waiting.
  • Each token can send 60 deploys an hour. After that we answer 429 with a Retry-After header.
  • A 404 means the token or the site is wrong. Use a deploy token, not an API token.