Release Checklist
Verify your release commit, Worker bundle, production features, and rollback readiness before serving real traffic.
After choosing your release path in the Cloudflare Workers deployment guide, work through these four verification stages in order.
1. Release Commit
Run these checks locally or in CI against the exact commit you plan to publish:
pnpm type-check
pnpm check:error
pnpm lint:ws
pnpm test:unitDual-app parity and release notes
- If your repository keeps both the Node and Cloudflare apps, also run
pnpm apps:parity. - Confirm that install, dev, or build generated
.source/. - Record how
SCENARIOS.mdcovers the affected user journeys and list any checks still pending manual verification.
2. Worker Bundle
Review the pre-release gates for the deployment path you selected:
- Runs the dashboard's build and deploy commands automatically whenever the production branch updates.
- If the commit adds a new D1 migration: apply it remotely and confirm
pnpm db:migrate:d1:status --strictpasses before pushing or merging. - To validate Worker runtime behavior before automatic release, preview the release commit under
workerdon Linux.
Regardless of release path, verify these shared requirements before publishing:
| Check | What to confirm |
|---|---|
| Build environment | Use pnpm dev:cf on Windows; both release paths build the production Worker remotely on Linux |
| Wrangler bindings | Confirm wrangler.jsonc points to the target Worker, production domain, and production DB / R2_BUCKET resources; run pnpm cf:typegen after binding changes |
| D1 migrations | If migrations are pending, run pnpm db:migrate:d1:remote against the verified target and secure the backup; require pnpm db:migrate:d1:status --strict to pass |
| Variables & secrets | Verify build-time NEXT_PUBLIC_SITE_URL, Worker runtime secrets, deployment credentials, and your verified Cloudflare Email Sending domain |
Application build vs. Worker runtime verification
pnpm build:cf verifies the Next.js application build. Follow the Linux Worker preview steps to build and preview under workerd, and verify real D1/R2 reads and writes against the target Worker and its bindings. See the Testing guide.
3. Production Domain and Features
After deployment, repeat the home page, /api/health, sign-in, and signed-out /app redirect checks on your production HTTPS domain, then verify every enabled or modified area:
| Area | Verification Checklist | Edge Cases & Security Checks |
|---|---|---|
| Public Pages & SEO | Both languages on home, docs, blog, and legal pages load cleanly | Check navigation, sitemap, robots, and dead links after removing pages |
| Auth & Email | Use a real mailbox to verify registration, OTP delivery, sign-in, sign-out, session expiry, onboarding, and 2FA | Confirm production origin, OAuth callbacks, and trusted origins match |
| Access & Admin | Verify admin workflows and confirm impersonation is clearly visible and can be stopped | Signed-out users are blocked; regular users cannot access admin routes; session-service failures show recognizable errors |
| Billing & Webhooks | Run sandbox checkout, signed webhooks, renewals, cancellation, and refunds | Verify contracts, entitlements, customer portal, and clear errors for invalid gateways or products |
| R2 Storage & Avatars | Users can upload, download, and delete their own avatars and assets | Confirm cross-user key denial, missing storage handling, and empty-list states |
| Forms & Privacy | Verify contact form, newsletter signup, and signed unsubscribe links | Inspect client responses and logs to ensure no credentials or personal data leak accidentally |
Production guardrails
- Use real production accounts and credentials, keep Better Auth test utilities disabled, and leave environment validation active.
- Rehearse upgrades to any existing production database on a clone first.
- Record both the Git commit hash and the Worker Version ID for every release.
4. If Production Verification Fails
Check whether the new version is already live
GitHub Actions runs Verify production after deployment completes. If that step fails, the new Worker version may already be serving live traffic—verify immediately before troubleshooting.
Inspect the failed step and active version
Check which step failed in GitHub Actions, then confirm the active version under Worker → Deployments in the Cloudflare dashboard.
Roll back to the previous verified Worker
If the new version introduced the issue and the previous Worker remains compatible with the current D1 schema, locate the previous verified version under Deployments and select Rollback from its menu. See the Cloudflare Worker rollback guide.
Re-run smoke checks and verify user journeys
Run the smoke check from the repository root using your real production hostname, then confirm the affected user journeys have recovered:
node scripts/cf-smoke.mjs https://app.example.comWhen the incident involves D1 data or schema
Rolling back a Worker does not revert database changes. Follow the database recovery procedure if D1 data or schema is affected:
- Locate the pre-migration export at
packages/db/.local/d1-backup-*.sql. - Confirm the target database and back up the current production data before taking action.
- Rehearse the restore on a separate D1 database first.
- Account for any writes that occurred after the backup before deciding how to recover production data.