---
title: "Production checklist"
description: "What `doctor --prod` fails on, what it reads off production and probes on the live site, and the list for what no command can see, from auth, email and billing to privacy, monitoring and a launch in phases."
canonical_url: "https://nuxt-backend.dev/docs/ship/checklist"
---
# Production checklist

> What `doctor --prod` fails on, what it reads off production and probes on the live site, and the list for what no command can see, from auth, email and billing to privacy, monitoring and a launch in phases.

Version: nuxt-backend 0.6.x · Tab: Ship · Kind: how-to · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

Launch is the moment production starts taking real people, real money and real mail. Two things stand between a deployed app and a launched one. `doctor --prod` fails on what a live product cannot run without, and probes the live site. The list below covers what no command can see. Run the command first, with production's deploy key in your shell, then walk the list.

```bash
CONVEX_DEPLOY_KEY=prod:... npx nuxt-backend doctor --prod
```

Each check `doctor` makes is a **finding** with an id, such as `site-https`. A `fail` blocks the launch, and a `warn` asks you to look. [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics) has the fix for every id.

## What `--prod` fails on

In development, a capability without its keys degrades by design: no email key means codes print in the terminal. In production, the same gap breaks the product. These findings escalate from `warn` to `fail` under `--prod`:

<table>
<thead>
  <tr>
    <th>
      Finding
    </th>
    
    <th>
      What it means in production
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        deployment-backend-environment
      </code>
    </td>
    
    <td>
      <code>
        BACKEND_ENVIRONMENT
      </code>
      
       is missing, or names <code>
        development
      </code>
      
       or <code>
        preview
      </code>
      
      . Production would log sign-in codes, trust local origins or keep every provider in its test mode. <code>
        env push --prod
      </code>
      
       sets <code>
        production
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email-transport
      </code>
      
       / <code>
        deployment-email-api-key
      </code>
    </td>
    
    <td>
      No <code>
        EMAIL_API_KEY
      </code>
      
      : sign-in codes to real addresses are refused, so nobody can sign in by code
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email-webhook-secret
      </code>
      
       / <code>
        deployment-email-webhook-secret
      </code>
    </td>
    
    <td>
      <code>
        /email/events
      </code>
      
       fails closed: a delivery status never moves past <code>
        sent
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing-access
      </code>
      
       / <code>
        deployment-billing-access-token
      </code>
    </td>
    
    <td>
      No <code>
        BILLING_ACCESS_TOKEN
      </code>
      
      : pricing renders empty and checkout fails
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing-customer-mapping
      </code>
    </td>
    
    <td>
      The deployment maps billing entities onto customers the provider does not know: its billing data belongs to another organization than the token names, and their checkout, portal and free plan are refused
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing-webhook-secret
      </code>
      
       / <code>
        deployment-billing-webhook-secret
      </code>
    </td>
    
    <td>
      <code>
        /billing/events
      </code>
      
       fails closed: entitlements refresh only on demand
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email-webhook-route
      </code>
      
       / <code>
        billing-webhook-route
      </code>
    </td>
    
    <td>
      The probe found the route mounted but failing closed (<code>
        503
      </code>
      
      ), unreachable, or answering an unexpected status
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        deployment-ai-gateway-api-key
      </code>
    </td>
    
    <td>
      The backend names a <code>
        provider/model
      </code>
      
       id and no route is ready: no Convex AI Gateway (<code>
        @convex-dev/ai-sdk-provider
      </code>
      
       is not installed, or the backend is self-hosted) and no <code>
        AI_GATEWAY_API_KEY
      </code>
      
      . Every call to it is refused (<a href="https://nuxt-backend.dev/docs/build/ai/models">
        Choose a model
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        deployment-provenance-private-key
      </code>
      
       / <code>
        deployment-provenance-certificate
      </code>
    </td>
    
    <td>
      The backend turns provenance on and the signing pair is missing: generated images carry the IPTC source type only, with no signed C2PA manifest, short of the machine-readable marking the EU AI Act asks for (<a href="https://nuxt-backend.dev/docs/build/ai/provenance">
        Label AI-generated content
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing-webhook-enabled
      </code>
      
       / <code>
        email-webhook-enabled
      </code>
    </td>
    
    <td>
      The provider turned the webhook endpoint off after its deliveries kept failing: the deployment hears of no charge, refund, bounce or unsubscribe. <code>
        doctor --fix
      </code>
      
       turns it back on once the route answers (<a href="https://nuxt-backend.dev/docs/services#healthy-webhook-endpoints">
        Recommended settings
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        deployment-content-safety-endpoint
      </code>
      
       / <code>
        deployment-content-safety-key
      </code>
      
       / <code>
        deployment-second-opinion-key
      </code>
      
       / <code>
        deployment-known-abuse-key
      </code>
    </td>
    
    <td>
      The backend names a moderation provider and a key it reads is missing: every check it is asked for is refused, and the content is refused as unchecked (<a href="https://nuxt-backend.dev/docs/build/ai/content-safety/providers">
        Choose moderation providers
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai-moderation-providers
      </code>
    </td>
    
    <td>
      The backend checks images with no known-abuse match, or pins its processing to the EU while <code>
        azureContentSafety({ region })
      </code>
      
       names a region outside it (<a href="https://nuxt-backend.dev/docs/build/ai/content-safety/providers">
        Choose moderation providers
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai-components
      </code>
    </td>
    
    <td>
      The backend declares <code>
        ai.chat
      </code>
      
       or <code>
        ai.knowledge
      </code>
      
       and <code>
        convex.config.ts
      </code>
      
       does not mount Convex's Agent or RAG component: every call is refused
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai-spend-limit
      </code>
    </td>
    
    <td>
      Production is a <code>
        sandbox
      </code>
      
       (a public demo) and <code>
        setupAi
      </code>
      
       sets no <code>
        spendLimit
      </code>
      
      : every metered call, stream, job and chat reply is refused (<a href="https://nuxt-backend.dev/docs/build/ai/models#cap-the-daily-spend">
        Cap the daily spend
      </a>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        protection-guest-jobs
      </code>
    </td>
    
    <td>
      A job queue is open to guests and the deployment has no <code>
        PROTECTION_PROOF_SECRET
      </code>
      
      : every guest job is refused (<a href="https://nuxt-backend.dev/docs/build/ai/jobs/guests">
        Let guests generate
      </a>
      
      )
    </td>
  </tr>
</tbody>
</table>

(`deployment-backend-environment` replaces `deployment-auth-trust-local-origins` and `billing-simulator` from earlier previews.)

Everything else keeps its normal severity. `deployment-auth-secret` and `deployment-site-url` always fail when missing. The route probes fail on `404` (not mounted) in any mode, and `ai-stream-route` only warns on a `503`. `function-contract` fails on a trimmed scaffold export, and `page-paths` on a mismatch between a path in `nuxt.config` and the one the deployment serves on or emails.

## What it reads and probes

A name set on production says nothing of its value. So `--prod` reads what the names alone cannot say, then visits the site the way a visitor and an uptime check do ([every read, in the CLI reference](https://nuxt-backend.dev/docs/reference/cli#under---prod)). A setting left at its default fails. The same setting chosen on purpose, such as a demo kept on the test modes with `BACKEND_ENVIRONMENT=sandbox`, only warns.

<table>
<thead>
  <tr>
    <th>
      Finding
    </th>
    
    <th>
      Fails when
    </th>
    
    <th>
      Warns when
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        deployment-backend-environment
      </code>
    </td>
    
    <td>
      <code>
        BACKEND_ENVIRONMENT
      </code>
      
       is unset, <code>
        development
      </code>
      
       or <code>
        preview
      </code>
    </td>
    
    <td>
      it is <code>
        sandbox
      </code>
      
      , chosen on purpose
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        deployment-email-from
      </code>
    </td>
    
    <td>
      <code>
        EMAIL_FROM
      </code>
      
       is unset: the onboarding sender reaches only test addresses
    </td>
    
    <td>
      the deployment is a <code>
        sandbox
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        site-url-origin
      </code>
    </td>
    
    <td>
      <code>
        SITE_URL
      </code>
      
       is local (the dev default), plain HTTP, or not a URL
    </td>
    
    <td>
      its value cannot be read
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email-sender-domain
      </code>
    </td>
    
    <td>
      the sender's domain is not verified, not in the key's account or not sending, or Resend refuses the key
    </td>
    
    <td>
      the key may only send, so nothing can be read with it
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email-reputation
      </code>
    </td>
    
    <td>
      the last 7 days' bounce rate is above 4%, or the complaint rate above 0.08%, on 100 sends or more
    </td>
    
    <td>
      a rate is past half its limit
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email-quota
      </code>
    </td>
    
    <td>
      
    </td>
    
    <td>
      the account has a daily quota (the free plan's)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing-catalog-production
      </code>
    </td>
    
    <td>
      a plan price, pack or meter has no production id while production bills live
    </td>
    
    <td>
      the same gap on a <code>
        sandbox
      </code>
      
       deployment
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        site-https
      </code>
    </td>
    
    <td>
      the root redirects to plain HTTP
    </td>
    
    <td>
      no HSTS, or a redirect to another origin
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        site-csp
      </code>
    </td>
    
    <td>
      a policy blocks the deployment or its WebSocket (a header sent twice is two policies, each enforced)
    </td>
    
    <td>
      the site sends no policy, or lets the WebSocket through only by its <code>
        https
      </code>
      
       origin
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        site-backend-url
      </code>
    </td>
    
    <td>
      the page talks to another deployment (dev's, built with <code>
        .env.local
      </code>
      
      )
    </td>
    
    <td>
      the page names none
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        site-gated-page
      </code>
    </td>
    
    <td>
      a private page is served to an anonymous visitor from a cache
    </td>
    
    <td>
      it answers <code>
        200
      </code>
      
       rather than a redirect to sign in
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        monitoring-health
      </code>
    </td>
    
    <td>
      the health endpoint shows its detail to anyone
    </td>
    
    <td>
      it is missing, or reports the app failing
    </td>
  </tr>
</tbody>
</table>

The email facts come from production itself. An internal function, run with the deployment's admin key, asks Resend with the deployment's own key and answers with derived facts only, never the key or an address. `npx nuxt-backend status --prod` shows the same findings, each under its capability.

## The list

An item `doctor --prod` checks names its finding. The rest are yours to check.

<steps level="3">

### Auth

- [ ] `AUTH_SECRET` is set on the production deployment and strong: 32 random bytes or more, never the dev one. To change it later, use [Rotate secrets](https://nuxt-backend.dev/docs/ship/security/secrets).
- [ ] `SITE_URL` is the app's public origin (`https://app.example.com`): the only trusted browser origin and the base of every emailed link. `doctor --prod` fails a local or plain-HTTP origin (`site-url-origin`), and probes the site at it.
- [ ] `BACKEND_ENVIRONMENT` is `production`.
- [ ] The first administrator exists: sign in once, then `npx nuxt-backend doctor --fix --prod` at a terminal asks for the address ([Make the first administrator](https://nuxt-backend.dev/docs/build/auth/admin#make-the-first-administrator)).
- [ ] A bot check is live. On Vercel, production's own `PROTECTION_PROOF_SECRET`, never `.env.local`'s, in the app's env and on the deployment. Elsewhere, a Turnstile widget's two keys. `doctor --prod` warns `bot-protection` until one is ([Bot protection](https://nuxt-backend.dev/docs/services/bot-protection)).
- [ ] The launch phase is the one you mean: early access, invite only or public ([Launch from a waitlist](#launch-from-a-waitlist)).

### Email

- [ ] `EMAIL_API_KEY` is set, and `EMAIL_FROM` is an address on a **verified** sending domain, a subdomain of yours ([Resend](https://nuxt-backend.dev/docs/services/resend#go-to-production)).
- [ ] `doctor --prod` passes `email-sender-domain`, `email-reputation` and `email-quota`. The domain is verified in the account production's key belongs to. The last week's bounces and complaints are well under Resend's limits. The account has no daily quota to run out of on launch day.
- [ ] The Resend webhook points at `https://<slug>.convex.site/email/events`, and `EMAIL_WEBHOOK_SECRET` matches its signing secret.
- [ ] Marketing email carries a one-click unsubscribe and your postal address ([Let people choose their emails](https://nuxt-backend.dev/docs/build/email/preferences)).

### Billing

- [ ] Polar's account review passed, so payouts can reach you ([Polar](https://nuxt-backend.dev/docs/services/polar#go-to-production)).
- [ ] The catalog is synced to Polar's production environment: `npx nuxt-backend billing sync --env production`. Its ids sit apart from the sandbox's in `billing.generated.ts`.
- [ ] `BILLING_ACCESS_TOKEN` is a **production** organization's token. `billing-catalog-production` fails a price, pack or meter with no production id.
- [ ] The billing webhook points at `https://<slug>.convex.site/billing/events`, and `BILLING_WEBHOOK_SECRET` matches. The sync provisions the endpoint and stores its secret on production.
- [ ] Pricing lists the products: the sync ran `billing:syncProducts` on production. If it reported it couldn't, run `npx convex run --prod billing:syncProducts`.
- [ ] The `appConfig.backend.billing.plans` and `packs` keys match the catalog keys.

### Webhooks

- [ ] `doctor --prod` reports all three routes mounted and not failing closed: `billing-webhook-route`, `email-webhook-route` and `ai-stream-route`.
- [ ] Custom `billingPath` or `emailPath` in `http.ts`? The dashboards point at the custom paths.
- [ ] You know how to rotate both secrets with no downtime ([Rotate secrets](https://nuxt-backend.dev/docs/ship/security/secrets)).

### AI, notifications and monitoring

- [ ] A model route is ready when the backend names a model: the Convex AI Gateway on a paid plan, or `AI_GATEWAY_API_KEY` on the deployment. The gateway has a spending limit of its own, so a mistake in your prices never costs more than you chose ([AI gateway](https://nuxt-backend.dev/docs/services/ai-gateway#go-to-production)).
- [ ] Production has web push keys of its own, never copied from `.env.local` ([Service map](https://nuxt-backend.dev/docs/services#notifications)).
- [ ] Errors report: `MONITORING_DSN` on the deployment, and on the host ([Sentry](https://nuxt-backend.dev/docs/services/sentry#link-it)). `doctor --prod` checks both sides (`deployment-monitoring-dsn`, `monitoring-app`) and the source maps (`monitoring-source-maps`) ([Monitor errors and uptime](https://nuxt-backend.dev/docs/ship/operate/monitoring)).
- [ ] An uptime check polls `/api/backend/health`, and the scheduled jobs' check-ins have monitors that alert on a missed run.
- [ ] You know who may pause sign-ups, checkout or AI from the admin console ([Kill switches](https://nuxt-backend.dev/docs/ship/operate/flags#kill-switches)).

### Privacy

- [ ] Your privacy notice names the subprocessors and what each holds: each [service page](https://nuxt-backend.dev/docs/services) has its data and region ([Privacy, GDPR and cookies](https://nuxt-backend.dev/docs/ship/compliance/privacy)).
- [ ] Your terms and privacy policy have a version, and sign-up records each person's consent to it ([Consents](https://nuxt-backend.dev/docs/build/auth/accounts/consents)).
- [ ] An account's deletion waits out its grace period, and its "keep my account" link reaches your app's origin ([Export and delete account data](https://nuxt-backend.dev/docs/build/auth/accounts/data)).

### App

- [ ] `NUXT_PUBLIC_BACKEND_URL` on the host points at the production deployment, or the host sets `CONVEX_DEPLOYMENT=prod:<slug>`.
- [ ] Custom domains on the deployment? Both origins are set by hand, since nothing derives from a custom domain, and the provider webhooks point at the custom HTTP-actions origin ([Add custom domains](https://nuxt-backend.dev/docs/ship/deploy/self-hosting#add-custom-domains)).
- [ ] Pages that open live subscriptions are excluded from prerendering.
- [ ] No `swr`, `isr` or `cache` route rule covers the private pages. They are exempt at their exact paths only, and the module warns at startup when a wildcard rule reaches them ([caches](https://nuxt-backend.dev/docs/build/ui/pages#caches)).
- [ ] The private pages answer `noindex`: `curl -sI https://app.example.com/account | grep -i x-robots-tag` ([search engines](https://nuxt-backend.dev/docs/build/ui/pages#search-engines)).
- [ ] Your dependencies are pinned, and new releases wait a day before install ([Secure your supply chain](https://nuxt-backend.dev/docs/ship/security/supply-chain)).
- [ ] The Content Security Policy is on. `nuxt-security` is a dependency of this package, and the module registers it in every app ([Security model](https://nuxt-backend.dev/docs/ship/security)). `doctor --prod` probes it on the live site: `site-https`, `site-csp` and `site-backend-url`.
- [ ] The live site answers as production should: a private page sends an anonymous visitor to sign in (`site-gated-page`), and `/api/backend/health` shows its public shape (`monitoring-health`).

</steps>

## Launch from a waitlist

An app that gathered people before it opened can launch to them in phases, without a deploy. The app moves through three [launch phases](https://nuxt-backend.dev/docs/build/growth/launch) from the admin console: **early access**, then **invite only**, then **public**. On launch day:

- **Admit people in waves** from the [waitlist](https://nuxt-backend.dev/docs/build/growth/launch/waitlist), so sign-ups, emails and the first payments arrive at a pace your limits and your inbox can take.
- **Hand out invite codes and access links** to the people you want in first ([Invites and access links](https://nuxt-backend.dev/docs/build/growth/launch/invites)).
- **Tell only the people who opted in.** The launch announcement goes to the people who chose the launch topic, never to the whole list ([Announcements](https://nuxt-backend.dev/docs/build/growth/engage/announcements)).
- **Open to everyone** by switching the phase to public.
- **Hold the door** with the `pause_signups` kill switch while you fix something. Nobody new gets an account, and everyone admitted signs in as before ([Kill switches](https://nuxt-backend.dev/docs/ship/operate/flags#kill-switches)).

Before the first wave, raise `emailOtpGlobal` and `invitationGlobal` if a wave will sign in or invite more people in an hour than their ceilings allow ([Tune rate limits](https://nuxt-backend.dev/docs/ship/security/rate-limits)).

## After launch

Run `doctor` against production after every env change. When a purchase or an email looks stuck, read the webhook delivery log as an administrator, in DevTools' Backend tab or through `getWebhookDeliveries`. A `missing_secret`, `invalid_signature` or `handler_error` outcome says what to fix. [Monitor production](https://nuxt-backend.dev/docs/ship/operate) says where to look each day, and [Respond to incidents](https://nuxt-backend.dev/docs/ship/operate/runbooks) what to do when something breaks.

## Related

- [Deploy to production](https://nuxt-backend.dev/docs/ship/deploy): the env split, the providers and the first deploy.
- [Service map](https://nuxt-backend.dev/docs/services#provider-setup): each service's production side, with the findings that check it.
- [Security model](https://nuxt-backend.dev/docs/ship/security): what each guard does, and what production needs from you.
- [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics): every finding, with its fix.


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
