Releases
Tell Clearlook about your deploys so it can say which one changed something.
Without deploy data, an answer can only say "something changed around 2pm". With it: "deploy a1b2c3d broke it".
From the script (no setup)
Give the tag your deploy's commit SHA. The first time Clearlook sees a value, it records a release.
<script defer src="https://app.clearlook.dev/s/latest/w.js" data-key="pk_live_…" data-release="a1b2c3d"></script>
- Next.js on Vercel:
data-release={process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA}. - Script version 0.3.1 and later send it; the
latestaddress always has it.
Error SDKs that send a release (any Sentry SDK) record releases the same way.
From CI (exact deploy times)
Make a key with only Record releases in Settings › API keys and store it as the CI secret CLEARLOOK_API_KEY. After deploying, call the API (here in GitHub Actions; any CI works the same way):
curl -X POST https://app.clearlook.dev/api/projects/123/releases \
-H "Authorization: Bearer $CLEARLOOK_API_KEY" -H "Content-Type: application/json" \
-d '{"commit_sha":"'$GITHUB_SHA'","environment":"production"}'
Fields: version (default: the short SHA), commit_sha, commit_message (first line kept), branch, environment (production, preview, development), url, author (a name; emails are removed), status, ready_at. At most 200 releases a project a day.
Where they show
Production deploys appear beside the notes under the Web chart. Investigations line changes up with them, and compare_release answers "did my last deploy break anything?".