---
title: "Diagnostics"
description: "Every doctor finding by id: what it checks, its severity in dev and under --prod, why it matters, and its fix. /d/<id> links here."
canonical_url: "https://nuxt-backend.dev/docs/reference/cli/diagnostics"
---
# Diagnostics

> Every doctor finding by id: what it checks, its severity in dev and under --prod, why it matters, and its fix. /d/<id> links here.

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · 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.

- [Source](https://github.com/qruto/nuxt-backend/blob/main/src/findings/index.ts)

`npx nuxt-backend doctor`, the dev-server preflight and the DevTools tab report the same findings, and this page has an entry for each. An entry says what the finding checks, when it warns or fails in development and under `--prod`, why it matters, and how to fix it.

Each finding has an id, the [capability](https://nuxt-backend.dev/docs/reference/capabilities) that `doctor --only` selects it by, and a `docsUrl`, `https://nuxt-backend.dev/d/<id>`, that lands on its entry below. The entries are generated from the findings registry. In `0.x` a minor release may rename a finding or move it to another capability, and any release may change a message's wording ([Stability](https://nuxt-backend.dev/docs/ship/releases/stability)).

A finding that **fails** breaks the app or a deploy, and `doctor` exits `1`. One that **warns** is a designed degradation, or a check that could not run. Under `--prod`, a warning of a finding production cannot run without fails too. `doctor --fix` repairs the findings marked so: it restores missing scaffold files and pushes env, never with `--force`, and runs `email sync` and changes provider settings only once you confirm them, at a terminal or with `--yes`. Without a terminal it makes no first administrator, and says so.

```bash
npx nuxt-backend doctor --only billing   # one capability's findings
npx nuxt-backend doctor --prod --json    # production posture, as JSON
```

`doctor --only` takes the twelve [capabilities](https://nuxt-backend.dev/docs/start/concepts/capabilities); `agents` is not one of them. `doctor --fix` also applies the settings the warn-only billing findings recommend at the provider, such as [`billing-trial-abuse`](#billing-trial-abuse), and the webhook endpoints of both providers, each only once you confirm it at a terminal or pass `--yes` ([Apply the provider settings](https://nuxt-backend.dev/docs/services#recommended-settings)). [`name-collisions`](#name-collisions) is informational: it names each app component or composable that shares a name with one of the package's, since a same-named component is how you swap a [part](https://nuxt-backend.dev/docs/reference/components/parts).

## `auth`

### `auth-secret`

`AUTH_SECRET` is set on the deployment, or visible locally, at least 32 characters and not a placeholder.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Auth secret
    </td>
    
    <td>
      Fails when it is too short or a placeholder; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** It signs sessions and encrypts the keys the session tokens are signed with; a weak one makes them guessable. **Fix:** Generate one (`openssl rand -base64 32`) and push it: `npx nuxt-backend env push`, or `doctor --fix` on a dev deployment. Check it again with `npx nuxt-backend doctor --only auth`.

### `site-url`

`SITE_URL` is a valid http(s) URL.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      App site URL
    </td>
    
    <td>
      Fails when it is malformed; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Auth trusts it as the app origin, and invitation and gift emails link to it. **Fix:** Set `SITE_URL` to the app's origin, such as `https://app.example.com`. Check it again with `npx nuxt-backend doctor --only auth`.

### `deployment-auth-secret`

`AUTH_SECRET` is set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Deployment AUTH_SECRET
    </td>
    
    <td>
      Fails when it is not set; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A deploy fails without it. **Fix:** `npx nuxt-backend env push` provisions it on a dev deployment; set it yourself everywhere else. Check it again with `npx nuxt-backend doctor --only auth`.

### `deployment-site-url`

`SITE_URL` is set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Deployment SITE_URL
    </td>
    
    <td>
      Fails when it is not set; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A deploy fails without it. **Fix:** `npx nuxt-backend env push` defaults it on a dev deployment; pass `--site-url` everywhere else. Check it again with `npx nuxt-backend doctor --only auth`.

### `site-url-origin`

Production's `SITE_URL`, its origin read off the deployment (`convex env get --prod SITE_URL`; the app's public origin, no secret, so the findings print it): an `https` origin passes; one on this machine (`localhost`, a `.localhost` name, a loopback address), a plain `http` one or no URL at all fails. An `https` origin of its own is the site the live probes below check; nothing is probed over plain HTTP, so this finding alone reports it. No finding when `SITE_URL` is not set (`deployment-site-url` fails).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Production site URL
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when it is a local origin, plain HTTP, or not a URL; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Auth trusts it as the one browser origin, and every emailed link starts with it: left at the dev default, links point at the developer's machine; over plain HTTP, browsers keep passkeys and secure cookies away. **Fix:** Set the app's public origin on production: `npx convex env set --prod SITE_URL https://app.example.com`. Check it again with `npx nuxt-backend doctor --only auth --prod`.

### `site-gated-page`

An anonymous request to a page behind the sign-in gate (`backend.pages.settings`, `/settings` by default) on production's site: a redirect to the sign-in page (`backend.pages.login`) passes; a `200` that carries a cache's mark (`x-vercel-cache` `HIT`, `STALE` or `PRERENDER`, `cf-cache-status: HIT`, `x-nitro-prerender`, an `age`) fails; any other `200`, a redirect elsewhere, a `404` or no answer warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Gated pages
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when the page is served to an anonymous visitor from a cache; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A private page rendered once and cached is served to everyone, with the data of whoever it was rendered for; one rendered only in the browser sends its shell before the gate runs. **Fix:** Drop the `swr`, `isr`, `cache` or `prerender` route rule that reaches the page (the module exempts private pages at their exact paths only), and keep server rendering on for it. Check it again with `npx nuxt-backend doctor --only auth --prod`.

### `site-auth-proxy`

An anonymous `GET <authRoute>/ok` (`/api/auth/ok` by default) on production's site, Better Auth's own health answer through the sign-in proxy: `{ ok: true }` passes; a `5xx` fails; a `404`, another answer or none warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Sign-in proxy
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when the proxy answers <code>
        5xx
      </code>
      
      : it cannot reach the deployment; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The proxy forwards to the HTTP routes' origin the build baked in, derived from the backend URL the build knew. A build that knew none (`NUXT_PUBLIC_BACKEND_URL` set for the runtime only) leaves it empty, and every sign-in request fails. **Fix:** Set `NUXT_PUBLIC_BACKEND_URL` where the app builds, or set `NUXT_PUBLIC_CONVEX_SITE_URL` on the app's host to the deployment's `https://<name>.convex.site` URL, then redeploy ([Deploy to Vercel](https://nuxt-backend.dev/docs/ship/deploy/vercel#the-backends-url-at-build)). Check it again with `npx nuxt-backend doctor --only auth --prod`.

### `consent-urls`

Whether each required consent that `setupAccount({ consents })` declares in `backend/account.ts` has a `url`. It reads the declaration from the source, so a `consents` that is not an object literal in the call is left alone. It runs under `--prod` only.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Consent documents
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The agreement line on the sign-up form and the prompt that asks again after a change link each kind to its `url`: a required kind without one points nowhere, and a person cannot read what they agree to. **Fix:** Add the page of the document as the kind's `url`, such as `/terms` ([Record consents](https://nuxt-backend.dev/docs/build/auth/accounts/consents#declare-your-consents)). Check it again with `npx nuxt-backend doctor --only auth --prod`.

### `admin-bootstrap`

Whether an account on the deployment holds the `admin` role, read off the auth tables of the `backend` component (`convex run --component backend --inline-query`, which answers `true` or `false` and reads no address). An account whose roles include `admin` passes (`admin,support` too); none warns. Only the `admin` role itself is looked for: administrators who hold only a role of the app's own read as none, so give them `admin` as well. No finding when the deployment cannot be read, or when it holds more than 8,000 accounts and none of the first 8,000 is an administrator.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      First administrator
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Until an account holds the role, nobody can open the admin console at `/admin`, ban an account, sign its devices out or act as it to help. **Fix:** Sign in once with your address, then run `npx nuxt-backend doctor --fix` at a terminal and enter it: the scaffold's `setUserRole` makes that account an administrator and records the change on the activity trail. Without a terminal: `npx convex run functions:setUserRole '{"email":"you@example.com","role":"admin"}'` ([Run the admin console](https://nuxt-backend.dev/docs/build/auth/admin)). Check it again with `npx nuxt-backend doctor --only auth`.

### `page-paths`

The paths the deployment serves on and links to (`paths` from the deployed `auth:authConfig`: the auth route, and the invitation, keep-account, security, waitlist, login, unsubscribe, report, settings and privacy pages) against the ones `nuxt.config` declares (`backend.authRoute` and `backend.pages`). They differ when the deployed code predates the generated `paths.generated.ts`, or does not pass its `paths` to `defineBackendAuthConfig`, `setupAuth` and `setupAccount`. No finding when the deployment or `nuxt.config` cannot be read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Page paths
    </td>
    
    <td>
      Fails when any path differs; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A different auth route sends the proxy to routes the deployment does not serve, so nobody signs in; a different page path sends the email that links to it to a 404. **Fix:** Pass the generated `paths` on as the scaffold does, then let `npx convex dev` push, or deploy. Check it again with `npx nuxt-backend doctor --only auth`.

### `auth-provider`

Whether `nuxt.config` runs Convex Auth (`backend.auth: 'convex-auth'`). Only then is there a finding: it warns that the app is sign-in only, with the package's pages, page guard, workspaces, billing, AI credits and account features off, and doctor leaves out the checks that do not apply: `auth-secret`, `site-url`, `backend-site-url` and every billing check. No finding for a Better Auth app, or when `nuxt.config` cannot be read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Auth provider
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** In this mode the package's account features do not run, so a failing check of one says nothing about the app. **Fix:** Nothing to fix: it reports the mode. To run Better Auth again, remove `backend.auth` ([Sign in with Convex Auth](https://nuxt-backend.dev/docs/build/auth/convex-auth)). Check it again with `npx nuxt-backend doctor --only auth`.

## `data`

### `backend-site-url`

A backend site URL is configured: the site origin derived from `NUXT_PUBLIC_BACKEND_URL` (or the `url` module option, or `CONVEX_DEPLOYMENT`), or `NUXT_PUBLIC_CONVEX_SITE_URL`, the base module's own variable, for a custom domain.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Backend site URL
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it the `/api/auth` proxy has no target, so nobody can sign in. **Fix:** Normally derived for you; set `NUXT_PUBLIC_BACKEND_URL` to point at another deployment, or `NUXT_PUBLIC_CONVEX_SITE_URL` for a custom domain or a self-hosted backend. Check it again with `npx nuxt-backend doctor --only data`.

### `deployment-env`

The deployment env could be read at all (`npx convex env list`).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Deployment env
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Every `deployment-*` check reads it; without it they cannot run. **Fix:** Run `npx convex dev` once to provision a deployment, then run `doctor` again. Check it again with `npx nuxt-backend doctor --only data`.

### `deployment-backend-environment`

`BACKEND_ENVIRONMENT` is set on the deployment: the kind of deployment, which decides email's test mode, the billing sandbox, the local origins auth trusts, the sign-in codes in the logs and the environment reports name. Under `--prod` its value is read (`convex env get`, compared and never printed): `production` passes; unset, `development` and `preview` fail; `sandbox`, a demo or staging app on purpose, warns, and so does a value that is none of the four.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Deployment BACKEND_ENVIRONMENT
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it every provider stays in its test mode: mail reaches only the email provider's test addresses, checkout takes test cards, and nobody pays. A `development` value on production also trusts local origins and logs sign-in codes. **Fix:** Run `npx nuxt-backend env push` (`--prod` for production): it derives the value from the deployment's kind, and `doctor --fix` does the same. A demo or staging app sets `sandbox` by hand (`npx convex env set --prod BACKEND_ENVIRONMENT sandbox`). Check it again with `npx nuxt-backend doctor --only data --prod`.

### `deployment-removed-env`

None of the variables that 0.2.0 removed is still set on the deployment: `EMAIL_TEST_MODE`, `BILLING_ENVIRONMENT`, `MONITORING_ENVIRONMENT`, `AUTH_TRUST_LOCAL_ORIGINS`, `NUXT_BACKEND_LOG_OTP`, `BILLING_SIMULATOR_URL` and `NUXT_BACKEND_SIMULATE_MODELS`. It warns and names each one it finds.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Removed variables
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Nothing reads them any more, and they still say something the deployment no longer does: `BACKEND_ENVIRONMENT` decides the modes they once set. **Fix:** Remove each one: `npx convex env remove NAME` (`--prod` for production). Check it again with `npx nuxt-backend doctor --only data`.

### `env-defaults`

The project's preview env defaults hold `AUTH_SECRET` and `SITE_URL`, so a new preview deployment's first push goes through. Not checked with `--prod`, or when the defaults cannot be read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Preview env defaults
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A preview deployment starts with nothing but those defaults, and the push fails without the required pair. **Fix:** Run `npx nuxt-backend env push --defaults preview --site-url <url>`, or fill the preview's env in its build ([Preview deployments](https://nuxt-backend.dev/docs/reference/cli#preview-deployments)). Check it again with `npx nuxt-backend doctor --only data`.

### `convex-codegen`

`<functions dir>/_generated` exists.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Convex codegen
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without codegen, the app has no typed API and the platform features no-op. **Fix:** Run `npx convex dev` (or `npx nuxt-backend dev`). Check it again with `npx nuxt-backend doctor --only data`.

### `paths-file`

`<functions dir>/paths.generated.ts` exists and holds the paths `nuxt.config` declares (`backend.authRoute`, and `backend.pages` for the invitation, keep-account, security, waitlist, login, unsubscribe, report, settings and privacy pages), read as the module reads them: options written inline in `modules` over the `backend` key. Missing or out of date warns, naming each path that differs. So does a backend file that does not import it while `nuxt.config` moves a path its helper reads: `auth.config.ts` (the auth route), `auth.ts`, `account.ts` (the keep-account page), `waitlist.ts` (the sign-in page) or `access.ts` (the sign-in and privacy pages). No finding before there is a functions directory, or when `nuxt.config` cannot be loaded.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Paths file
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The backend reads its paths from that file: without it, with an old one, or in a file that does not pass it on, the auth routes and the links in its emails point at the default paths, or at pages that moved. An `auth.config.ts` kept from `0.1` serves the token keys under `/api/auth` while the proxy moves, and nobody signs in. **Fix:** Run `npx nuxt-backend doctor --fix` (any `nuxt prepare`, `dev` or `build` writes it too), commit the file and push the functions. In a file that does not pass it on, import `paths` from `./paths.generated` and pass it as the scaffold does. Check it again with `npx nuxt-backend doctor --only data`.

### `brand-file`

`<functions dir>/brand.generated.ts` exists and holds the brand `app.config` declares (`backend.brand`: `name`, `logo` and `address`, each written as a literal), the app's own over a layer's. Missing or out of date warns. No finding before there is a functions directory, or when `nuxt.config` cannot be loaded.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Brand file
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The backend never reads app config: its emails and passkey prompts read the brand from that file. Without it, or with an old one, the emails name the app otherwise than its pages, and marketing email lacks the postal address. **Fix:** Run `npx nuxt-backend doctor --fix` (any `nuxt prepare`, `dev` or `build` writes it too), commit the file and push the functions. Check it again with `npx nuxt-backend doctor --only data`.

### `labels-file`

`<functions dir>/labels.generated.ts` exists and holds the labels `app.config` sets (`backend.labels`), the app's own over a layer's, key by key. A label is read as written: a string, an object of them, a `const` of the same file, or a named or default import of a relative file; one written as any other expression is left out. Missing or out of date warns. No finding before there is a functions directory, or when `nuxt.config` cannot be loaded.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Labels file
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The backend never reads app config: its emails, notification emails and push read the labels from that file, through `setupEmail({ labels })`. Without it, or with an old one, they say otherwise than the pages. **Fix:** Run `npx nuxt-backend doctor --fix` (any `nuxt prepare`, `dev` or `build` writes it too), commit the file and push the functions. A `backend/email.ts` from before 0.3 imports `labels` from `./labels.generated` and passes it to `setupEmail`, as the scaffold does. Check it again with `npx nuxt-backend doctor --only data`.

### `dev-script`

Reported only when `scripts.dev` is `convex dev --start "nuxt dev"`, which never starts Nuxt on a new deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Dev script
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Convex starts the command only after a successful push, and a new deployment lacks the env that push needs. **Fix:** `doctor --fix` points it at `nuxt-backend dev`. Check it again with `npx nuxt-backend doctor --only data`.

### `convex-config`

`convex.config.ts` mounts every component the scaffold's own mounts, plus each component the scaffold leaves out once a file of the functions directory imports it directly (the action cache, an aggregate, migrations, or `Crons` from `@convex-dev/crons`), and forwards every env name the scaffold forwards to the `backend` component (`MONITORING_DSN` among them) when it forwards an `env` object at all, and forwards none of the names `0.2.0` removed (`EMAIL_TEST_MODE`, `MONITORING_ENVIRONMENT` and the rest), and `http.ts` passes every route group the scaffold's passes to `registerBackendRoutes`. Both lists are read from the scaffold of the installed version. A mount anywhere in the file counts, a branch included; a component marked `// nuxt-backend-unmounted: <name>` is left out on purpose. A file that does not parse warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Mounts and routes
    </td>
    
    <td>
      Fails when a missing component is already needed by a backend file (<code>
        components.<name>
      </code>
      
      , a helper that reads it such as <code>
        setupRateLimiter
      </code>
      
      , or a direct import of one the scaffold leaves out), or the mount forwards a name <code>
        0.2.0
      </code>
      
       removed, which the deployment no longer declares, so the push fails; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A project scaffolded by an earlier release lacks what later ones added, and the features that need it stay off; a component the code needs but nothing mounts fails the push. **Fix:** `doctor --fix` adds each missing import and `app.use(…)`, each missing forwarded env name, and each missing route group with its import after the ones the scaffold lists before it, and deletes a forward `0.2.0` removed when it is the scaffold's own line (`NAME: app.env.NAME`, a comment ending the line going with it; one written another way stays, and it says so), keeping a BOM, CRLF line ends and comments. It mounts only on a top-level `defineApp()` variable, re-parses the result before writing it, and leaves alone, saying why: a file that does not parse, an app built in a function, an import it cannot match to a mount, a scaffold name mounted from another file, and an optional mount while its package is not installed. Check it again with `npx nuxt-backend doctor --only data`.

### `function-contract`

Every function the composables bind to (`auth:getAuthUser`, `billing:getCredits`, `email:getEmailStatus` and the rest) exists in `npx convex function-spec`.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Function contract
    </td>
    
    <td>
      Fails when any is missing; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A composable whose function is gone reads `undefined` without an error. **Fix:** `doctor --fix` restores a missing scaffold file; restore a removed export by hand ([Project files](https://nuxt-backend.dev/docs/reference/configuration/project-files)). Check it again with `npx nuxt-backend doctor --only data`.

### `agent-files`

`AGENTS.md` holds the `nuxt-backend` section the app's installed version writes (or the version-free one the templates ship), with its markers paired, `.mcp.json` has the `nuxt-backend` server (the developer MCP server), and every skill copy in `.agents/skills/` (and every copy of its own in `.claude/skills/`) is one the installed version ships, as it ships it: line endings and dotfiles aside. A project with no `AGENTS.md`, or with none or only some of the skills, passes with a note.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Agent files
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The section points coding agents at the skills in `node_modules`, which match the installed version, and agents read the copies in `.agents/skills/` on their own; a stale copy, or one of a skill the version no longer ships, sends them to names another version had. **Fix:** Run `npx nuxt-backend init --agents`: it rewrites only the section, adds the developer MCP server, and replaces the stale skill copies or removes them. A skill the project's `skills-lock.json` lists belongs to the skills CLI, which `init` leaves it to: `npx skills add ./node_modules/nuxt-backend/skills --skill '*' -y` reinstalls the installed version's. When the markers don't pair up, keep one start and one end marker around the section, or delete every marker, first. Check it again with `npx nuxt-backend doctor --only data`.

### `env-example`

The app's `.env.example` lists every name the package's own lists (the file `init` writes) for each capability the app uses, set or commented out (`# NAME=`), and lists no name that neither the package nor the app's code reads: one that is not the package's, not the platform's, Nuxt's or the host's by its prefix (`CONVEX_`, `NUXT_`, `NITRO_`, `VERCEL_`, `SENTRY_`, …), and that no source or config file of the app names, its `.github` workflows included. A capability counts as used when the file lists one of its names or the env here (`.env`, `.env.local`, the shell) sets one; the backend's own names always count, so an app that dropped billing is not asked for the billing names. It warns, naming each one. No `.env.example`, no finding; one it cannot read (a folder of that name, a file you may not read) warns, and the other checks still run.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      .env.example
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The file is how a person or an agent setting the app up learns what to set. It drifts as the package moves on: a release reads a name the app's copy never got, so nobody sets it, and a name nothing reads any more still asks for a value. **Fix:** Add each missing name as `# NAME=` under its group, as the package's own file lists it ([Environment variables](https://nuxt-backend.dev/docs/reference/configuration/environment-variables)), and remove each name nothing reads. A name a tool outside the app's code reads can stay; the warning names it. Check it again with `npx nuxt-backend doctor --only data`.

### `name-collisions`

The app's own components (`app/components/`, named as Nuxt names them) and composables (the top level of `app/composables/` and `app/utils/`), against the names the installed package and the Convex module under it register. It always passes: the message names each shared name and the file it is in.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Name collisions
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A same-named component is how an app swaps a [part](https://nuxt-backend.dev/docs/reference/components/parts), so sharing a name is often meant. One shared by accident hides the package's from that app. **Fix:** Nothing, when you meant it. Otherwise rename yours. Check it again with `npx nuxt-backend doctor --only data`.

### `bundle-duplicates`

The last `npx nuxt-backend analyze` run, kept in `node_modules/.cache/nuxt-backend/analyze.json`: a package the Convex bundle holds more than once (the analyzer's `duplicate-package` insight) warns, and names each package with what removing the extra copies would save. A package that every component bundles again is not one, since Convex bundles each component on its own. `doctor` never runs the analyzer: there is no finding until a run exists, nor once a lockfile is newer than the run, since the install it measured has changed.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
    </td>
    
    <td>
      Duplicate packages in the Convex bundle
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Each copy is code the deployment pushes and loads: two versions of one package, installed under different dependencies, are bundled twice. **Fix:** Dedupe the install (`pnpm dedupe`), or align the version your code asks for with the one a dependency uses, then run `npx nuxt-backend analyze --only convex` again: it names each copy and what imports it ([See what is inside your bundles](https://nuxt-backend.dev/docs/develop/analyze)). Check it again with `npx nuxt-backend doctor --only data`.

## `billing`

### `billing-access`

`BILLING_ACCESS_TOKEN` is visible locally or set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing access
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails, except before billing launches
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, billing queries return empty and checkout fails when called. **Fix:** Add an organization access token to `.env.local` and push it. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-webhook-secret`

`BILLING_WEBHOOK_SECRET` is visible locally or set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing webhooks
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails, except before billing launches
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, billing events are refused and entitlements refresh only on demand. **Fix:** `npx nuxt-backend billing sync` creates the endpoint and stores its secret on the deployment. Check it again with `npx nuxt-backend doctor --only billing`.

### `deployment-billing-access-token`

`BILLING_ACCESS_TOKEN` is set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Deployment BILLING_ACCESS_TOKEN
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails, except before billing launches
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, billing queries return empty and checkout fails when called. **Fix:** Push it from `.env.local`: `npx nuxt-backend env push`, or `doctor --fix`. Check it again with `npx nuxt-backend doctor --only billing`.

### `deployment-billing-webhook-secret`

`BILLING_WEBHOOK_SECRET` is set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Deployment BILLING_WEBHOOK_SECRET
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails, except before billing launches
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, billing events are refused and entitlements refresh only on demand. **Fix:** Run `npx nuxt-backend billing sync`, which stores the endpoint's secret there. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-webhook-route`

An unsigned empty POST to `/billing/events` on the site URL: `404` is not mounted and fails; `503` is mounted but fail-closed, its secret unset, and warns; any other 4xx is mounted and passes; any other status warns as unexpected, and an unreachable site warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing webhook route
    </td>
    
    <td>
      Fails when the route answers <code>
        404
      </code>
      
      ; otherwise warns
    </td>
    
    <td>
      A warning fails, except before billing launches
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider delivers events there; unmounted, entitlements never refresh on their own. **Fix:** Mount it with `registerBackendRoutes` in `backend/http.ts`, and run `billing sync`. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-webhook-enabled`

Whether the billing provider still delivers to the deployment's `/billing/events` endpoint, read with the token visible here. Polar turns an endpoint off after 10 failed deliveries in a row. No finding without a token, or before `billing sync` made the endpoint.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing webhook endpoint
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** An endpoint that is off receives nothing: subscriptions, orders and refunds never reach the deployment, and entitlements go stale. **Fix:** Fix what made the deliveries fail (`billing-webhook-route` says whether the route answers), then run `npx nuxt-backend doctor --fix`: once the route answers the probe, it turns the endpoint back on after you confirm, and you can [replay](https://nuxt-backend.dev/docs/ship/operate/replay) what Polar held back. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-webhook-events`

Whether the deployment's billing endpoint is subscribed to every event the package handles (checkouts, customers, members, orders, subscriptions, refunds, products and benefits).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing webhook events
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** An event the endpoint is not subscribed to never reaches the deployment: a refund or a cancellation it misses leaves the app's copy wrong. **Fix:** Run `npx nuxt-backend doctor --fix`: it subscribes the endpoint to the missing events after you confirm. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-meter-usage`

Every meter in `billing.catalog.ts` is funded by a plan or pack credit grant, or billed by a usage price.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing meters
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** An orphan meter records spends nobody pays for. **Fix:** Grant the meter's credits from a plan or a pack, bill it with a usage price, or drop it. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-organization`

`BILLING_ACCESS_TOKEN` is visible locally and the provider answers with it for the billing environment `BACKEND_ENVIRONMENT` names (the provider's sandbox unless it is `production`). It also warns when the deployment holds `BILLING_ACCESS_TOKEN` and the env doctor reads here does not: the provider checks were skipped then, and it says how to run them.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing organization
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The cross-checks of the provider's settings below need it; they are skipped without it. **Fix:** Create a token for the environment you sync (an expired one, or one from the other environment, is refused). For a token kept on the deployment only, run doctor with it in the env: `BILLING_ACCESS_TOKEN=<the deployment's token> npx nuxt-backend doctor --only billing`. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-customer-mapping`

The billing provider knows the customers the deployment maps billing entities onto: the first ten mapped, read off the provider's component and asked for one by one with the `BILLING_ACCESS_TOKEN` doctor reaches the provider with (the process env alone under `--prod`). No finding without a token, or when the deployment or the provider cannot be read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Customer mappings
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider's component maps an entity onto a customer once and never forgets it. After `BILLING_ACCESS_TOKEN` moves to another organization (a new sandbox, say), every mapped customer is one the provider does not know, and each such entity's checkout, portal and free plan are refused as `unavailable` (reason `customer_unknown`). **Fix:** On a dev deployment, run `npx nuxt-backend billing reset`: it syncs the catalog to the token's organization, clears the deployment's billing data and puts every billing entity back on the free plan. Or point `BILLING_ACCESS_TOKEN` back at the organization the data came from, which is the fix on production. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-multiple-subscriptions`

The provider allows one active subscription per customer when the catalog has several plans, or a free plan beside a paid one.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Multiple subscriptions
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** With several allowed, a customer can hold two plans at once and the plan-change flow cannot tell which to change. Every billing entity holds the free plan, so with one in the catalog a checkout outside the package leaves a customer on two. **Fix:** Turn off multiple subscriptions in the provider's organization settings, or set `multipleSubscriptions` on purpose. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-proration`

How the provider settles a plan change (its proration setting).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Plan change proration
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** It decides what a customer pays the moment they switch plans. **Fix:** Pick the proration behaviour you mean in the provider's organization settings. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-benefit-grace`

The benefit revocation grace period, when the catalog grants features or credits.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Benefit revocation
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** With a grace period, a customer keeps features and credits after a subscription ends. **Fix:** Set the grace period to zero, or keep it on purpose. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-trial-abuse`

Trial abuse prevention is on when a plan has a trial.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Trial abuse prevention
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, one customer can start the same trial again and again. **Fix:** Run `npx nuxt-backend doctor --fix`: it turns trial abuse prevention on at the provider after you confirm, or turn it on in the provider's organization settings. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-portal`

The customer portal offers plan changes when the catalog has several plans.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Customer portal
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, `<BillingPortalLink>` opens a portal where the customer cannot switch plans. **Fix:** Turn on plan changes in the provider's customer portal settings. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-customer-emails`

The provider's own customer emails for a confirmed order, a subscription, a renewal, a failed payment and a cancelled or ended subscription, and its renewal and trial reminders, are on.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Customer emails
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Billing, gift and referral events reach people in the app only, and the app never sends a copy of the provider's emails. With these off, a renewal charge or a failed payment would reach no inbox at all while the person is away, and a yearly renewal or a trial's end would come without a reminder. **Fix:** Run `npx nuxt-backend doctor --fix`: it turns the emails back on at the provider after you confirm (never off), or turn them on in its dashboard, under Settings, Customer notifications. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-team-customers`

Workspaces bill as team customers with members, and the token reads them (it also needs `members:write` and `customer_sessions:write`, which a read cannot check).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Team customers
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A workspace's owner and admins manage its billing through the customer's members. **Fix:** Turn on team customers, and give the token the member and customer-session scopes. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-checkout-links`

No checkout link made in the provider's dashboard sells a product of the catalog (an archived product sells nothing). The package never makes one. No finding when the token may not read the organization's checkout links.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Provider checkout links
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A purchase through such a link names no billing entity: the provider makes a customer of the buyer's email, which the app maps to nobody, so the buyer pays and the app grants nothing, or a second plan lands beside the free one. **Fix:** Delete those links in the provider's dashboard, and link to the app's pricing page instead: its checkout names the billing entity. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-currency`

Every plan and pack the catalog sells has a price in the organization's default presentment currency, whatever currency the catalog pins. The free plan and a plan's pass are left out: the sync prices them at nothing in it itself.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing currency
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider makes no product without a price in that currency, so `billing sync` refuses the catalog before it creates anything, and a plan or pack added later is never made. **Fix:** Add the currency to those prices in `billing.catalog.ts` (`prices: { usd: …, eur: … }`) and run `npx nuxt-backend billing sync`, or make the catalog's currency the organization's default in the provider's dashboard. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-plan-benefits`

Every plan product that exists carries the credit grant for its cycle (`<plan>-credits`, `<plan>-credits-year`) and the plan's features. A product not made yet is left to the sync.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Plan benefits
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The sync finds a product by its key and keeps what it was made with: a grant or a feature added to the catalog since, or one another app's catalog on the same organization left off, reaches none of its subscribers until it is attached. **Fix:** Run `npx nuxt-backend billing sync`: it attaches a missing benefit to the plan's product, and the provider grants it to its current subscribers too. A product that grants other credits on the same meter is drift: swap them in the provider's dashboard. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-gift-twins`

Every pack has a private gift product with no benefits, at its pack's live prices in every currency. A pack or twin with no live fixed price warns too.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Gift products
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A gift buys the pack's twin; without one, gifts of that pack are refused, sold at the wrong price or in the wrong currency, or grant a benefit twice. **Fix:** Run `npx nuxt-backend billing sync`: it creates a missing gift product at the pack's live prices, moves one to the pack's prices in every currency, and detaches any benefit. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-pass-products`

Every plan offered as a gift (`gift: { months }`) has a free, private pass product that carries the plan's benefits, and a private one-time purchase product per length with none.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Plan pass products
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A pass gift buys the purchase product and is claimed onto the pass product; without them gifts of that plan are refused, charge the recipient's card, grant the plan to its purchaser, or grant the recipient nothing. **Fix:** Run `npx nuxt-backend billing sync`: it creates the missing products. Make a public one private in the provider's dashboard. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-feature-benefits`

Every catalog feature is the provider's native feature-flag benefit.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Feature benefits
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** `useFeatures().has(key)` matches the feature benefit's metadata; another benefit type never matches. **Fix:** Run `npx nuxt-backend billing sync` to create the feature benefits. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-promotion-limits`

Every catalog discount with a `code` (a public promotion) has a `perCustomer` limit, a `maxRedemptions` cap and an `endsAt`. No finding when the catalog has no discounts.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Promotion limits
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Coupon sites list codes: a public one is redeemed by whoever finds it, as often as nothing stops them, for as long as it runs. **Fix:** Add the missing limits to the discount in `billing.catalog.ts`, then run `npx nuxt-backend billing sync`. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-promotion-portal`

No `forever` discount is limited to some plans while the customer portal changes plans. No finding when the catalog has no discounts, or when the provider can't be read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Promotions and plan changes
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider keeps a subscription's discount across any plan change, so a customer who switches plans in the portal takes a discount meant for one plan onto another. **Fix:** Turn off plan changes in the provider's customer portal settings and switch plans through your own checkout, or give the discount a `once` or `{ months }` duration. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-provider-sdk`

The provider SDK the billing component resolves (its peer, from `@convex-dev/polar`'s own location, else the app's) is the 0.x line it is built on. No finding when it does not resolve.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing provider SDK
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The 1.0 SDK is a rewrite, and the billing component (`@convex-dev/polar` 0.9) breaks on it: its checkout, portal and webhook parsing. **Fix:** Pin `"@polar-sh/sdk": "^0.49.0"` in the app's `package.json` and reinstall, until a release of nuxt-backend supports the 1.x SDK. Check it again with `npx nuxt-backend doctor --only billing`.

### `billing-catalog-production`

Every price of a plan still sold (`pro`, `pro:year`), every pack and every meter of `billing.catalog.ts` has its production id in `billing.generated.ts`, which `billing sync --env production` writes. A retired plan is not asked for. A gap fails once production bills in the production environment and its billing is launched, and warns while it bills in the sandbox, on purpose or by default, or before billing launches there ([`billing-launch`](#billing-launch)). No finding without a catalog, or when the id map does not load.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Production catalog
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when production bills in the production environment, its billing is launched, and an id is missing; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The backend looks a product up by its catalog key in the production ids: one without its id cannot be checked out, and a meter without its id records no spend. **Fix:** Run `npx nuxt-backend billing sync --env production`, and commit the `billing.generated.ts` it writes. Check it again with `npx nuxt-backend doctor --only billing --prod`.

### `billing-launch`

Whether billing sells on production yet, by the rule the deployment follows: a production that bills in the provider's production environment (`BACKEND_ENVIRONMENT=production`) is launched once it holds `BILLING_ACCESS_TOKEN` and `billing.generated.ts` has production products. Not launched warns, naming which is missing and the steps that launch it; until then [`billing-access`](#billing-access), [`deployment-billing-access-token`](#deployment-billing-access-token), [`billing-webhook-secret`](#billing-webhook-secret), [`deployment-billing-webhook-secret`](#deployment-billing-webhook-secret), a fail-closed [`billing-webhook-route`](#billing-webhook-route) and [`billing-catalog-production`](#billing-catalog-production) warn rather than fail, and `status --prod` reads billing as missing, not failing. No finding while production bills in the sandbox, where billing is always launched, or for an app with no billing catalog.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        billing
      </code>
    </td>
    
    <td>
      Billing launch
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A production deployment can open before its billing does, while the provider reviews the organization: its pricing reads "Plans open soon" and every sale is refused (`unavailable`, reason `not_launched`), by design rather than by a broken setup ([Before billing launches](https://nuxt-backend.dev/docs/build/billing/setup#before-billing-launches)). **Fix:** Launch it as [Go live](https://nuxt-backend.dev/docs/build/billing/setup#go-live) says: set the live token on production, run `npx nuxt-backend billing sync --env production` with production's deploy key, commit and deploy the `billing.generated.ts` it writes, then start everyone who joined meanwhile on the free plan with `npx convex run --prod billing:startFreePlan '{}'`. Check it again with `npx nuxt-backend doctor --only billing --prod`.

## `email`

### `email-transport`

`EMAIL_API_KEY` is visible locally or set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email transport
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, email sends no-op and sign-in codes to real addresses are refused. **Fix:** Add the provider key to `.env.local` and push it (`npx nuxt-backend env push`, or `doctor --fix`). Check it again with `npx nuxt-backend doctor --only email`.

### `email-webhook-secret`

`EMAIL_WEBHOOK_SECRET` is visible locally or set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email webhooks
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, delivery events are refused and `useEmailStatus` stays at `sent`. **Fix:** Add the endpoint's signing secret to `.env.local` and push it. Check it again with `npx nuxt-backend doctor --only email`.

### `deployment-email-api-key`

`EMAIL_API_KEY` is set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Deployment EMAIL_API_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, email sends no-op and sign-in codes to real addresses are refused. **Fix:** Push it from `.env.local`: `npx nuxt-backend env push`, or `doctor --fix`. Check it again with `npx nuxt-backend doctor --only email`.

### `deployment-email-from`

`EMAIL_FROM` is set on the deployment. Under `--prod`, unset fails, unless production is a deliberate sandbox (`BACKEND_ENVIRONMENT=sandbox`), where it warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Deployment EMAIL_FROM
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Fails when it is not set and the deployment is not a deliberate sandbox; otherwise warns
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, the provider's onboarding sender is used, which delivers only to its test addresses and the account owner: sign-in codes, invitations and gifts to anyone else are refused. **Fix:** Set a sender on your verified domain, such as `Acme <hello@acme.com>`, and push it (`npx convex env set --prod EMAIL_FROM` on production). Check it again with `npx nuxt-backend doctor --only email --prod`.

### `deployment-email-webhook-secret`

`EMAIL_WEBHOOK_SECRET` is set on the deployment.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Deployment EMAIL_WEBHOOK_SECRET
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, delivery events are refused and `useEmailStatus` stays at `sent`. **Fix:** Push it from `.env.local`: `npx nuxt-backend env push`, or `doctor --fix`. Check it again with `npx nuxt-backend doctor --only email`.

### `email-webhook-route`

An unsigned empty POST to `/email/events` on the site URL: `404` is not mounted and fails; `503` is mounted but fail-closed, its secret unset, and warns; any other 4xx is mounted and passes; any other status warns as unexpected, and an unreachable site warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email webhook route
    </td>
    
    <td>
      Fails when the route answers <code>
        404
      </code>
      
      ; otherwise warns
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider delivers events there; unmounted, every delivery is lost. **Fix:** Mount it with `registerBackendRoutes` in `backend/http.ts`, and set `EMAIL_WEBHOOK_SECRET`. Check it again with `npx nuxt-backend doctor --only email`.

### `deployment-email-dev-inbox`

`EMAIL_DEV_INBOX`, the dev inbox's page reader, once it is set (unset, `getSandboxInbox` answers nothing and there is usually no finding). Set outside production passes. Set on a deployment whose `BACKEND_ENVIRONMENT` is `production` warns, and under `--prod` so does a production that is not a deliberate `sandbox`. Under `--prod`, a deliberate `sandbox` whose `backend/email.ts` re-exports `getSandboxInbox` warns while it is unset: the demo publishes an inbox that answers nothing.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Deployment EMAIL_DEV_INBOX
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The reader is opt-in and never answers on production: left set there, the variable says the inbox is published when it is not. **Fix:** On production, remove it: `npx convex env remove --prod EMAIL_DEV_INBOX`. `npx nuxt-backend dev` sets it on dev deployments and `npx nuxt-backend deploy --sandbox` on a sandbox; set it by hand on a preview that publishes the inbox. Check it again with `npx nuxt-backend doctor --only email`.

### `email-sender-domain`

What production reports of its own email (`posture:email`, run with production's admin key; the deployment asks the email provider with its own `EMAIL_API_KEY`, and only derived facts come back): the domain of `EMAIL_FROM` is verified in the provider account that key belongs to, with sending on. Verified passes; partly verified, or verified with a record the provider no longer finds (`temporary_failure`), warns; not verified, not in the account, sending off, or an `EMAIL_FROM` that holds no address fails. A key the provider refuses (deleted, inactive, suspended) fails too; a key that may only send, a provider that does not answer, and a deployment that does not report (a release before `posture:email`, or a Convex CLI that cannot reach production or times out) warn. No finding without `EMAIL_FROM` or `EMAIL_API_KEY`: their `deployment-*` findings report those.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Sending domain
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when the domain is not verified, not in the key's account, or not sending; the key is refused; or <code>
        EMAIL_FROM
      </code>
      
       holds no address; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider refuses mail from a domain its account has not verified, so every sign-in code would be refused on the day of launch. **Fix:** Add the domain in the email provider's dashboard, publish the DNS records it lists and wait for it to verify, or set `EMAIL_FROM` to an address on a verified domain ([Get email into inboxes](https://nuxt-backend.dev/docs/build/email/delivery/deliverability)). For a refused key, create one and set it: `npx convex env set --prod EMAIL_API_KEY`. Check it again with `npx nuxt-backend doctor --only email --prod`.

### `email-reputation`

The last 7 days of production's sending, as the email provider counts them (read with a full-access key): the bounce rate (bounced over sent) against the provider's limit of 4%, and the complaint rate (marked as spam over delivered) against 0.08%. Under half of each passes, and so does a week with nothing sent; from half the limit it warns; above it, it fails once 100 or more were sent, and warns on fewer, where one bounce moves the rate too far.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Bounces and complaints
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when a rate is above the provider's limit, on 100 sends or more; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Above either limit, the provider may pause the account's sending until the rate falls, and sign-in codes stop with everything else. **Fix:** Find the cause in the email provider's dashboard: addresses that no longer exist, or sign-ups by bots ([Turn on bot protection](https://nuxt-backend.dev/docs/build/auth/sign-in/bots)), then send less until the rates fall. Check it again with `npx nuxt-backend doctor --only email --prod`.

### `email-quota`

The sending quota production's account has used, as the email provider's response headers report it: a daily quota (the free plan's) warns, with what it has used today and this month; a monthly quota alone passes. No finding when no header carries it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Sending quota
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Once a daily quota is reached, every send stops until midnight UTC, sign-in codes included: a launch day's sign-ups can reach it by noon. **Fix:** Move the account to a paid plan before launch: it has a monthly quota only. Check it again with `npx nuxt-backend doctor --only email --prod`.

### `email-key-permission`

The reach of the deployment's `EMAIL_API_KEY`, as its own email sync reads it (a dry run of `email:syncEmail`): a full-access key passes, a key that may only send warns. No finding without a key, or without `syncEmail` re-exported from `backend/email.ts`.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email key permission
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Topics, contacts, segments and the webhook need a full-access key: with a sending key, nobody's choices reach the provider and `email sync` can create nothing. **Fix:** Create a full-access key at the email provider, put it in .env.local and run `npx nuxt-backend env push --force`. Check it again with `npx nuxt-backend doctor --only email`.

### `email-topics`

Whether every topic `setupEmail({ topics })` declares exists at the email provider, with the same name, description and default subscription. Only when topics are declared.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email topics
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A topic missing at the provider has no id on the deployment: a person's choice stays on the deployment and never reaches the provider's contact, so a broadcast to the topic misses them. **Fix:** Run `npx nuxt-backend email sync`, or `doctor --fix`. A topic whose default differs was made by the provider with the other default, which it cannot change: rename the topic to make a new one. Check it again with `npx nuxt-backend doctor --only email`.

### `email-flows`

Whether every lifecycle flow `setupEmail({ lifecycle })` turns on runs on the deployment as the code declares it, and has its template and its automation at the email provider. Only when flows are declared.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Lifecycle email flows
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A flow `email sync` has not caught up with starts nothing: the deployment runs the flows from the settings the last sync kept, and an email whose automation is missing at the provider is never sent. **Fix:** Run `npx nuxt-backend email sync`, or `doctor --fix`. A template the provider has already is left as it is, so an edit made in its editor stays. Check it again with `npx nuxt-backend doctor --only email`.

### `email-webhook-events`

Whether the email provider has a webhook at the deployment's `/email/events` that sends every event the package reads: delivery status, `email.clicked`, `contact.topics.updated` and `suppression.*`.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email webhook events
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without `contact.topics.updated`, a choice made on the provider's own page never reaches the deployment, and a send under a topic would still go to a person who left it. Without `email.clicked`, the sunset rule sees no clicks. **Fix:** Run `npx nuxt-backend email sync`, or `doctor --fix`: it adds the events, or creates the webhook and stores its secret as `EMAIL_WEBHOOK_SECRET`. Check it again with `npx nuxt-backend doctor --only email`.

### `email-webhook-enabled`

Whether the email provider still delivers to the deployment's webhook, read by the deployment's own email sync as a dry run. Resend turns off a webhook whose deliveries keep failing.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Email webhook endpoint
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A webhook that is off receives nothing: bounces, complaints and topic changes never reach the deployment, so a send may go to an address that bounced or a person who left the topic. **Fix:** Fix what made the deliveries fail (`email-webhook-route` says whether the route answers), then run `npx nuxt-backend doctor --fix`: once the route answers the probe, it turns the webhook back on after you confirm, and you can [replay](https://nuxt-backend.dev/docs/ship/operate/replay) what was held back. Check it again with `npx nuxt-backend doctor --only email`.

### `email-postal-address`

Under `--prod`, whether the brand has a postal address when topics are declared: `brand.address` on setupEmail or in app config.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Postal address
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** CAN-SPAM asks every commercial email for the sender's valid postal address, and every email under a topic carries it in its footer. **Fix:** Set `brand.address` in `appConfig.backend.brand` (or on setupEmail) to a real, current postal address. Check it again with `npx nuxt-backend doctor --only email --prod`.

### `email-marketing-from`

Under `--prod`, whether `EMAIL_MARKETING_FROM` is set when topics are declared.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Marketing sender
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it, marketing mail goes from `EMAIL_FROM`: a spam complaint about a newsletter then counts against the address that sends sign-in codes. **Fix:** Set `EMAIL_MARKETING_FROM` to an address on a subdomain of its own, and run `npx nuxt-backend env push --prod`. Check it again with `npx nuxt-backend doctor --only email --prod`.

### `email-region`

`EMAIL_REGION` against the region the email provider sends the sending domain's mail from (`EMAIL_FROM`'s domain), read by the deployment's own `email sync` dry run. A mismatch warns, naming the region to set; unset with a known region passes and says so. No finding while the domain's region is unknown.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Sending region
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider sets the region per domain. `EMAIL_REGION` records it for the privacy pages and the data map, so a stale value names the wrong place your mail goes through. **Fix:** Set `EMAIL_REGION` to the region the finding names in `.env.local` and run `npx nuxt-backend env push` (`--prod` for production). Check it again with `npx nuxt-backend doctor --only email`.

## `notifications`

### `deployment-push-public-key`

`PUSH_PUBLIC_KEY` is set on the deployment: the public half of the web push key pair.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      Deployment PUSH_PUBLIC_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it the in-app inbox and email notifications work, but web push does not: `usePushSubscription` reads unsupported, and no push goes out. **Fix:** Run `npx nuxt-backend env push` (`--prod` for production), or `doctor --fix`: it generates the pair when the deployment has none, keeps the dev deployment's in `.env.local`, and gives production a pair of its own. See [Send web push notifications](https://nuxt-backend.dev/docs/build/email/notifications/web-push#create-the-keys). Check it again with `npx nuxt-backend doctor --only notifications`.

### `deployment-push-private-key`

`PUSH_PRIVATE_KEY` is set on the deployment, as for `deployment-push-public-key`.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      Deployment PUSH_PRIVATE_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** It signs every push and stays on the deployment. Without it web push is off, as without the public key. **Fix:** Run `npx nuxt-backend env push` (`--prod` for production). Never replace a pair a deployment has: browsers bind their subscriptions to its public key. Check it again with `npx nuxt-backend doctor --only notifications`.

### `installable`

The app is installable: `public/icon-192.png` and `public/icon-512.png` exist and app.config names the brand (`backend.brand.name`), so the module serves `/manifest.webmanifest`. A missing icon or brand name warns once the app reaches for it, with one icon in place; before that it passes and says what is missing. No finding for an app with a manifest of its own (a PWA module, or a manifest in `public/`).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      Installable app
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** iPhone and iPad take web push only from an app added to the Home Screen, and a browser offers the install only with a manifest and its icons. **Fix:** Add two square PNG icons with a solid background to `public/`, and set `backend.brand.name` in app.config. See [Make the app installable](https://nuxt-backend.dev/docs/build/email/notifications/installable). Check it again with `npx nuxt-backend doctor --only notifications`.

## `ai`

### `ai-stream-route`

An unsigned empty POST to `/ai/stream` on the site URL: `404` is not mounted and fails; any 4xx is mounted and passes; any other status warns as unexpected, and an unreachable site warns. Checked once `backend/ai.ts` exists.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      AI stream route
    </td>
    
    <td>
      Fails when the route answers <code>
        404
      </code>
      
      ; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** `useAiStream` starts its streams there. **Fix:** Mount it with `registerBackendRoutes` in `backend/http.ts`. Check it again with `npx nuxt-backend doctor --only ai`.

### `ai-components`

Whether the components `ai.chat` and `ai.knowledge` run on are mounted: a backend file that declares a chat needs `app.use(agent)` of `@convex-dev/agent/convex.config`, and one that declares a knowledge store `app.use(rag)` of `@convex-dev/rag/convex.config`, in `convex.config.ts`. Read from the source.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Chat and knowledge components
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The app mounts the Agent and RAG components itself; without the mount, every chat message and every knowledge call is refused (`unavailable`). **Fix:** `pnpm add @convex-dev/agent` (or `@convex-dev/rag`), then import its `convex.config` and `app.use` it in `backend/convex.config.ts`. Check it again with `npx nuxt-backend doctor --only ai`.

### `ai-spend-limit`

On a production whose `BACKEND_ENVIRONMENT` is `sandbox`, a public demo, whether `setupAi` sets a `spendLimit`. Read from the source; no finding off a sandbox, or for a backend without `setupAi`. It runs under `--prod` only.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      AI spend limit on a sandbox
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Anyone may sign up to a demo, and its model calls are real: a sandbox refuses every metered call, stream, job and chat reply (`not_ready`, reason `no_budget`) until a daily ceiling caps what they cost. **Fix:** Pass `spendLimit: { usdPerDay }` to `setupAi` in `backend/ai.ts` ([Cap the daily spend](https://nuxt-backend.dev/docs/build/ai/models#cap-the-daily-spend)). Check it again with `npx nuxt-backend doctor --only ai --prod`.

### `ai-gateway-budget`

Off a sandbox, what caps production's model spend in dollars. The gateways its calls go through come from `setupAi({ gateway, routes })`'s order: in each, the first that answers on production (the Convex AI Gateway with `@convex-dev/ai-sdk-provider` installed on Convex Cloud, the Vercel AI Gateway with `AI_GATEWAY_API_KEY`), and the Vercel one alone for calls pinned to a region, once production holds its key. A `spendLimit` in `setupAi`, read from the source, passes. Each gateway's own cap is not checked, as doctor reads no Convex team or Vercel account: the finding names it and how to set it. No finding on a sandbox ([`ai-spend-limit`](#ai-spend-limit)), for a backend without `setupAi`, or when no model call goes anywhere ([`deployment-ai-gateway-api-key`](#deployment-ai-gateway-api-key) says why).

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      AI gateway budget
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Credits cap what each workspace spends in your prices; a cap in dollars is the last line, whatever the prices say. The Convex usage limit's `warning` ([`monitoring-usage-alerts`](#monitoring-usage-alerts)) only emails, and its `disable` pauses the whole deployment. **Fix:** Pass `spendLimit: { usdPerDay }` to `setupAi` in `backend/ai.ts`, which pauses AI alone ([Cap the daily spend](https://nuxt-backend.dev/docs/build/ai/models#cap-the-daily-spend)), and cap each gateway: the Convex team's spending limit on its billing page, a Vercel AI Gateway budget with `vercel ai-gateway budgets set` ([Cap what the gateway spends](https://nuxt-backend.dev/docs/build/ai/models#cap-what-the-gateway-spends)). Check it again with `npx nuxt-backend doctor --only ai --prod`.

### `ai-moderation-images`

Whether the image checks a backend file asks for (`images` in an `ai.moderate` or `ai.requireSafe` call, or in a `moderate` option) can run. The default safety classifier follows the gateway that answers: Llama Guard 4 through the Convex AI Gateway, which reads images, and `openai/gpt-oss-safeguard-20b` through the Vercel AI Gateway, which reads text only. A classifier named in `setupAi({ moderation: { model } })` passes as the app's own choice.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Image checks and the safety classifier
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A check with images that its classifier cannot read is refused as unchecked (`unavailable`, reason `not_configured`) rather than passed: every upload checked that way is refused. **Fix:** Route moderation through the Convex AI Gateway: a paid Convex plan, `@convex-dev/ai-sdk-provider` installed, and `'convex'` first in `setupAi({ gateway })`. Or name a classifier that reads images in `setupAi({ moderation: { model } })`. See [Content safety](https://nuxt-backend.dev/docs/build/ai/content-safety). Check it again with `npx nuxt-backend doctor --only ai`.

### `ai-moderation-providers`

The moderation providers a backend file names in `setupAi({ moderation })` (`azureContentSafety`, `openaiModeration`, `arachnidShield`): a backend that checks images has a known-abuse match; and, where `setupAi({ inferenceRegion: 'eu' })` pins processing to the EU, `azureContentSafety({ region })` names an EU region. With no provider named, nothing needs one.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Moderation providers
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without a known-abuse match, an upload of known child sexual abuse material reaches the other providers. A resource outside the EU processes images there. **Fix:** Add `knownAbuse: arachnidShield()`. Create the Content Safety resource in an EU region and name it. See [Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-content-safety-endpoint`

`CONTENT_SAFETY_ENDPOINT` is set on the deployment, once a backend file names `azureContentSafety()` in `setupAi({ moderation })`. With no provider that reads it, nothing needs it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment CONTENT_SAFETY_ENDPOINT
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider that reads it refuses every check it is asked for (`unavailable`, reason `not_configured`), and the content it would check is refused as unchecked. **Fix:** Add `CONTENT_SAFETY_ENDPOINT` to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production). See [Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-content-safety-key`

`CONTENT_SAFETY_KEY` is set on the deployment, once a backend file names `azureContentSafety()` in `setupAi({ moderation })`. With no provider that reads it, nothing needs it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment CONTENT_SAFETY_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider that reads it refuses every check it is asked for (`unavailable`, reason `not_configured`), and the content it would check is refused as unchecked. **Fix:** Add `CONTENT_SAFETY_KEY` to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production). See [Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-second-opinion-key`

`SECOND_OPINION_KEY` is set on the deployment, once a backend file names `openaiModeration()` in `setupAi({ moderation })`. With no provider that reads it, nothing needs it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment SECOND_OPINION_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider that reads it refuses every check it is asked for (`unavailable`, reason `not_configured`), and the content it would check is refused as unchecked. **Fix:** Add `SECOND_OPINION_KEY` to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production). See [Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-known-abuse-key`

`KNOWN_ABUSE_KEY` is set on the deployment, once a backend file names `arachnidShield()` in `setupAi({ moderation })`. With no provider that reads it, nothing needs it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment KNOWN_ABUSE_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The provider that reads it refuses every check it is asked for (`unavailable`, reason `not_configured`), and the content it would check is refused as unchecked. **Fix:** Add `KNOWN_ABUSE_KEY` to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production). See [Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-ai-gateway-api-key`

A route for every `provider/model` id a backend file names (in a `model` option or a `ctx.model()` call, as a string), through the order `setupAi({ gateway })` names as a literal (the default order when it names none). With no model named, nothing needs one. In the default order, on Convex Cloud with `@convex-dev/ai-sdk-provider` installed, the Convex AI Gateway answers on a paid plan, so `AI_GATEWAY_API_KEY` is optional there. `gateway: 'vercel'` needs the key everywhere; `gateway: 'convex'` never reads it, and warns without the provider package, on an anonymous local deployment, and on a self-hosted one; a local deployment linked to a project passes, on that team's plan. An order it cannot read as a literal (a variable, the shorthand `{ gateway }`, an empty list, spread options, two `setupAi` calls that differ) warns that the route is not checked. An id built at run time is not read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment AI_GATEWAY_API_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without a gateway in the order that can serve the deployment, every call to a named model is refused. Convex runs actions on its own servers, never on Vercel, so the Vercel AI Gateway's keyless sign-in never reaches them: it needs the key. **Fix:** For the Vercel AI Gateway, create a key in its dashboard, add it to `.env.local`, then push it: `npx nuxt-backend env push`, or `doctor --fix`. Production takes a key of its own, with its own budget: `npx convex env set --prod AI_GATEWAY_API_KEY` (`env push --prod` never sends `.env.local`'s). For the Convex AI Gateway, install `@convex-dev/ai-sdk-provider` and use Convex Cloud on a paid plan. See [Choose a gateway](https://nuxt-backend.dev/docs/services/ai-gateway#choose-a-gateway). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-provenance-private-key`

`PROVENANCE_PRIVATE_KEY` is set on the deployment, once a backend file turns provenance on (`setupAi({ provenance })` with anything but `false`, or a `ctx.storeImage` call). With provenance off, nothing needs it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment PROVENANCE_PRIVATE_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** It signs the C2PA manifest `ctx.storeImage` writes into every generated image. Without it, images carry the IPTC source type only, with no signed manifest (`ai.provenance_unsigned`), which the EU AI Act's machine-readable marking expects from production. **Fix:** Run `npx nuxt-backend env push` (`--prod` for production), or `doctor --fix`: when `.env.local` has no key, it generates one with its certificate, keeps both there and sets them on the deployment. See [Label AI-generated content](https://nuxt-backend.dev/docs/build/ai/provenance#the-signing-key). Check it again with `npx nuxt-backend doctor --only ai`.

### `deployment-provenance-certificate`

`PROVENANCE_CERTIFICATE` is set on the deployment, once a backend file turns provenance on, as for `deployment-provenance-private-key`.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      Deployment PROVENANCE_CERTIFICATE
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Each manifest carries the certificate chain its signature is checked with: without it, nothing is signed. **Fix:** Run `npx nuxt-backend env push` (`--prod` for production): it generates the key and the certificate together. For a named signer, put a certificate from a CA on the C2PA trust list and its key in the two variables. See [Label AI-generated content](https://nuxt-backend.dev/docs/build/ai/provenance#the-signing-key). Check it again with `npx nuxt-backend doctor --only ai`.

## `protection`

### `bot-protection`

Whether the deployment checks for bots: it takes proofs (`PROTECTION_PROOF_SECRET`), challenge answers (`PROTECTION_CHALLENGE_SECRET_KEY`), or both. On a local deployment it passes as test mode, on a cloud dev deployment as development; under `--prod` it warns when neither is set, when production's env names cannot be read, or when production takes proofs only and nothing links the project to Vercel (no `.vercel/project.json`, no `VERCEL` in the env), where alone they are signed.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Bot protection
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without a bot check, a script can request sign-in codes and create accounts as fast as the rate limits allow, each code an email in your sending reputation. Off Vercel no proof is signed, so a deployment that takes proofs only refuses everyone. **Fix:** On Vercel, set production's own `PROTECTION_PROOF_SECRET` in the app's env and on the deployment (`npx convex env set --prod PROTECTION_PROOF_SECRET`), and link the project (`vercel link`) so doctor sees it. Elsewhere, set `NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY` for the app and `PROTECTION_CHALLENGE_SECRET_KEY` on the deployment. See [Turn on bot protection](https://nuxt-backend.dev/docs/build/auth/sign-in/bots). Check it again with `npx nuxt-backend doctor --only protection`.

### `protection-proof`

The proof secret both sides hold: present on each, at least 32 characters, and the same value. With the secret here and on the deployment, doctor signs a proof for an empty sign-in code request with it, for the site URL it probes, and sends that: the deployment refuses it (`forbidden`, `bot_check`) when the secrets differ or that site URL is not its own `CONVEX_SITE_URL`, and answers anything else when they match. The request sends nothing and spends no limit, and the value never leaves this machine. Under `--prod` only the process env speaks for the app (`vercel env pull`), never `.env.local`, and it warns when production's secret shares a key with `.env.local`'s.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Bot-check proof
    </td>
    
    <td>
      Fails when the deployment refuses the proof signed here, or, outside production, it takes proofs while the dev server has no secret to sign them with and no challenge stands in; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The deployment refuses every protected request without a proof that passes: two different secrets refuse everyone, and a secret only on the app's side leaves the deployment's own URL open to anyone who skips the app. A proof names its deployment, so development's never passes on production; production holds its own secret all the same, so a leaked `.env.local` leaks nothing of it. **Fix:** In development, one value in `.env.local` and on the dev deployment: `npx nuxt-backend env push --force PROTECTION_PROOF_SECRET`. On production, its own value, generated with `openssl rand -base64 32` and set on the deployment (`npx convex env set --prod PROTECTION_PROOF_SECRET`) and in the app host's production env, never pushed from `.env.local`. Check it again with `npx nuxt-backend doctor --only protection`.

### `protection-challenge-keys`

The challenge's two keys: the site key the app shows (`NUXT_PUBLIC_BACKEND_CHALLENGE_SITE_KEY`) and the secret key the deployment verifies with (`PROTECTION_CHALLENGE_SECRET_KEY`), both or neither. A site key alone warns; the secret key alone refuses every code request without a proof. Under `--prod` it reads the app's keys from the shell's env only (`vercel env pull`): the provider's test keys found there fail, and a deployment that verifies answers while no site key is visible warns, since doctor cannot check it.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Challenge keys
    </td>
    
    <td>
      Fails when the deployment asks for answers the app never gives (and no proof stands in), or production runs on the provider's test keys; otherwise warns
    </td>
    
    <td>
      As in dev
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A widget nothing verifies protects nothing; a deployment that wants an answer the app never sends refuses everyone; the test keys answer the same for every caller. **Fix:** Create a widget in the provider's dashboard, set its site key for the app and its secret key on the deployment (`npx nuxt-backend env push`), or remove both. Check it again with `npx nuxt-backend doctor --only protection`.

### `waitlist-bot-check`

Whether a waitlist's join is checked for bots. An app with `backend/waitlist.ts` passes the join through `verifyHuman`, which lets everyone in while the deployment holds neither `PROTECTION_PROOF_SECRET` nor `PROTECTION_CHALLENGE_SECRET_KEY`. It runs under `--prod` only; development answers human and says so.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Waitlist bot check
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Each join asks for a sign-in code, so an unchecked form is a way to send mail to any address and to fill the list with addresses nobody owns. **Fix:** On Vercel, set production's own `PROTECTION_PROOF_SECRET` in the app's env and on the deployment; elsewhere set the challenge's site key for the app and its secret key on the deployment ([Block bots](https://nuxt-backend.dev/docs/build/auth/sign-in/bots)). Check it again with `npx nuxt-backend doctor --only protection --prod`.

### `contact-bot-check`

Whether the contact form can be used. An app whose `backend/email.ts` re-exports `submitContactMessage` passes each message through `verifyHuman`, and on production the form is refused while the deployment holds neither `PROTECTION_PROOF_SECRET` nor `PROTECTION_CHALLENGE_SECRET_KEY`. It runs under `--prod` only; development answers human and says so.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Contact form bot check
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A public form nothing checks is a way to fill your team's inbox, so production refuses it until the bot check is set up. **Fix:** On Vercel, set production's own `PROTECTION_PROOF_SECRET` in the app's env and on the deployment; elsewhere set the challenge's site key for the app and its secret key on the deployment ([Block bots](https://nuxt-backend.dev/docs/build/auth/sign-in/bots)). Check it again with `npx nuxt-backend doctor --only protection --prod`.

### `protection-guest-jobs`

Whether a job queue open to signed-out visitors (`guest` on `defineJobQueue` or a kind) has `PROTECTION_PROOF_SECRET` on the deployment. No finding when no visitor may start a job.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Guest jobs
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      A warning fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A guest job needs a proof that names its visitor, signed with `PROTECTION_PROOF_SECRET` like the visitor cookie: without it, every guest job is refused. **Fix:** Add `PROTECTION_PROOF_SECRET` to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production); the Nuxt server needs the same value ([Let guests generate](https://nuxt-backend.dev/docs/build/ai/jobs/guests)). Check it again with `npx nuxt-backend doctor --only protection`.

### `deployment-protection-proof-secret`

`PROTECTION_PROOF_SECRET` is set on the deployment. Unset passes: the deployment then takes no proof. It warns when `.env.local` holds one the deployment lacks.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Deployment PROTECTION_PROOF_SECRET
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The deployment checks a proof only with the secret the app's server signs it with. **Fix:** Add it to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production), or `doctor --fix`. Check it again with `npx nuxt-backend doctor --only protection`.

### `deployment-protection-challenge-secret-key`

`PROTECTION_CHALLENGE_SECRET_KEY` is set on the deployment. Unset passes: the deployment then takes no challenge answer. It warns when `.env.local` holds one the deployment lacks.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Deployment PROTECTION_CHALLENGE_SECRET_KEY
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The deployment verifies a challenge answer with the provider under this key. **Fix:** Add it to `.env.local` and run `npx nuxt-backend env push` (`--prod` for production), or `doctor --fix`. Check it again with `npx nuxt-backend doctor --only protection`.

## `monitoring`

### `deployment-monitoring-dsn`

`MONITORING_DSN` is set on the deployment. Unset on a dev deployment passes: the dev server's local error log stands in.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Deployment MONITORING_DSN
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      Applies the fix
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without it the backend reports nothing: errors in its actions and its cron check-ins go nowhere. **Fix:** Add the DSN to `.env.local` and push it: `npx nuxt-backend env push --prod`, or `doctor --fix` on a dev deployment. Check it again with `npx nuxt-backend doctor --only monitoring`.

### `monitoring-app`

Where a DSN is visible to the app (`MONITORING_DSN`, or the `NEXT_PUBLIC_SENTRY_DSN` Sentry's Vercel integration sets), that `@sentry/nuxt` is installed for the module to wire it, at 11.10 or later, the first with the managed tunnel: an older one warns. Without a DSN it passes in dev; under `--prod` it warns, unless the app deploys to Vercel and its env is not here to read.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      App error reports
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A DSN without the SDK, or no DSN at all, reports nothing from the browser or the Nuxt server; an SDK before 11.10 reports from the browser straight to the ingest, which ad blockers drop. **Fix:** Install it, `npm install @sentry/nuxt@^11.10.0`, and set the DSN where the app runs. The module wires it at the next build ([Monitoring](https://nuxt-backend.dev/docs/ship/operate/monitoring)). Check it again with `npx nuxt-backend doctor --only monitoring`.

### `monitoring-source-maps`

Reported only for an app that deploys to Vercel (a Vercel build, or a project linked with `vercel link`) with a DSN and the SDK: that `SENTRY_AUTH_TOKEN`, `SENTRY_ORG` and `SENTRY_PROJECT` are visible, the names Sentry's Vercel integration sets.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Source maps
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A build without them uploads no source maps, so stack traces stay minified, and no release is named. **Fix:** Install Sentry's Vercel integration; `vercel env pull .env.local` brings its names here to check. Check it again with `npx nuxt-backend doctor --only monitoring`.

### `monitoring-backend-exceptions`

A reminder, never a failure: reported under `--prod`, or once `MONITORING_DSN` is on the deployment. Queries and mutations cannot post a report, so their errors are reported where they are called.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Backend exception reporting
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Only the backend's own exception reporting sees every exception of a query or a mutation, with its real message. **Fix:** Turn it on in the deployment's dashboard (a Pro plan setting); nothing to change in the app. Check it again with `npx nuxt-backend doctor --only monitoring`.

### `monitoring-health`

An anonymous request to production's health endpoint (`/api/backend/health`): its public shape, `{ status, capabilities }` with every capability in a known state and no `detail`, passes for `ok` and `degraded` and warns for `failing`. The detail shown to an anonymous caller fails; a `404`, another shape or no answer warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Health endpoint
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when it shows the capabilities' detail to an anonymous caller; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Uptime checks read the public shape; the detail names env names and findings, which only admins should see. **Fix:** Production shows the detail to everyone only when its `BACKEND_ENVIRONMENT` says `development`: name it `production` with `npx nuxt-backend env push --prod --force BACKEND_ENVIRONMENT` (`env push` leaves a value already set unless forced). Check it again with `npx nuxt-backend doctor --only monitoring --prod`.

### `monitoring-uptime`

Not checked: whether an uptime monitor asks production's health endpoint, as doctor reads no monitoring account. Reported once the endpoint answers its public shape ([`monitoring-health`](#monitoring-health)), as a pass that says so, with where to set one up; nothing before that.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Uptime monitor
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Passes, saying it was not checked
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The health endpoint answers anyone; without a monitor asking it, an outage is heard of when someone reports it. **Fix:** In Sentry: **Monitors**, **Add Monitor**, **Uptime**, at `https://<your site>/api/backend/health`, every minute ([Watch the health endpoint](https://nuxt-backend.dev/docs/services/sentry#watch-the-health-endpoint)). Any uptime service that GETs the URL works the same way. Check it again with `npx nuxt-backend doctor --only monitoring --prod`.

### `monitoring-usage-alerts`

Production's usage limits, as `npx convex deployment usage-limits list --prod --json` prints them: an active `warning` limit on some metric, and on `aiGatewayCostDollars` too when models go through the Convex AI Gateway (`@convex-dev/ai-sdk-provider` installed). A limit past its threshold warns. Limits that cannot be read pass, saying so.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Usage alerts
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The deployment cannot read its own usage, so the backend raises no alert for it: Convex's `warning` usage limit is the alert, an email to the team on a production deployment, before a bill or a `disable` limit that pauses the whole app. **Fix:** Set one with `npx convex deployment usage-limits set --prod --metric functionCalls --window month --type warning --limit <calls>`, and `--metric aiGatewayCostDollars` in dollars for the gateway ([Alerts](https://nuxt-backend.dev/docs/ship/operate/monitoring#alerts)). Check it again with `npx nuxt-backend doctor --only monitoring --prod`.

## `analytics`

### `analytics-metrics`

The billing access token visible here reads the provider's metrics: a read of their date limits, which takes the `metrics:read` scope. No token here is `billing-access`'s finding, so this one is not reported then.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        analytics
      </code>
    </td>
    
    <td>
      Billing metrics
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The admin console's Revenue view reads the provider's metrics each time it opens. Without the scope, every read is refused as `unavailable` ([Read revenue and usage](https://nuxt-backend.dev/docs/build/growth/measure/revenue)). **Fix:** Issue an organization access token with the `metrics:read` scope besides the ones it has, put it in `.env.local`, and run `npx nuxt-backend env push`. Check it again with `npx nuxt-backend doctor --only analytics`.

### `analytics-activation`

The event kind of the app's own (`app.…`) that `setupAudit({ activation })` names in `backend/audit.ts` is recorded by another backend file. No activation named (an account's first `app.*` event counts) and a package kind say nothing.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        analytics
      </code>
    </td>
    
    <td>
      Activation event
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      Still a warning
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** The growth funnel counts a person's activation when that event is recorded for them. A kind nothing records leaves the activation step at zero ([Measure growth](https://nuxt-backend.dev/docs/build/growth/measure#name-your-activation-event)). **Fix:** Record the kind where a person first gets value, with `audit.recordBackendEvent(ctx, { type })`, or name the kind you already record. Check it again with `npx nuxt-backend doctor --only analytics`.

## `hosting`

### `site-https`

An anonymous request to the root of production's site, at the `https` origin its `SITE_URL` names, following its redirects: answered at that origin, with `Strict-Transport-Security` for a day or more. A redirect to plain HTTP fails; a redirect to another origin, no HSTS, a shorter one or a `5xx` warns. A site that was not probed at all is one warning, on the first probe the run checks (this one, else `site-gated-page`, `mcp-challenge` or `monitoring-health`), and no other probe runs: a site that does not answer, or, in a run without the auth capability, whose `site-url-origin` would say so, a `SITE_URL` that names no `https` origin of its own.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      HTTPS and HSTS
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when the root redirects to plain HTTP; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Without HTTPS, sessions and sign-in codes cross the network in the clear; without HSTS, a browser may try plain HTTP first; on another origin, the browser holds sessions and passkeys for an origin auth does not trust. **Fix:** Serve the app over HTTPS at the origin `SITE_URL` names, and keep the security headers on (nuxt-security, which the module registers, sends HSTS for 180 days). Check it again with `npx nuxt-backend doctor --only hosting --prod`.

### `site-csp`

The root's `Content-Security-Policy`: in every policy it holds (a header sent twice, by the app and by the host or a proxy, is two, and browsers enforce each), `connect-src` (else `default-src`) lets the browser reach the deployment the page talks to and its WebSocket twin (`https://<slug>.convex.cloud` and `wss://<slug>.convex.cloud`), as browsers match sources: an exact origin, a `*.` host, a scheme, `*`. A gap fails; a WebSocket let through only by its `https` origin's source warns (current browsers connect, some older engines do not); no policy at all warns. A page that names no deployment URL (a custom domain for the deployment) leaves the policy unjudged, and `site-backend-url` warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      Content security policy
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when the policy blocks the deployment or its WebSocket; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** A policy that blocks the deployment blocks every query, mutation and realtime update in the browser; with no policy, an injected script may send data anywhere. **Fix:** The module adds the deployment the page talks to (its runtime config) to `connect-src` of the security headers' `/**` rule, so a gap comes from elsewhere: a policy the app host or a proxy adds, a route rule more specific than `/**` that sets its own `connect-src`, or the module's policy turned off (`contentSecurityPolicy: false`) with one set elsewhere. Add the deployment's `https://` and `wss://` origins there ([Security](https://nuxt-backend.dev/docs/ship/security)). Check it again with `npx nuxt-backend doctor --only hosting --prod`.

### `site-backend-url`

The deployment the root page names in its inlined runtime config is production's (the URL `convex function-spec --prod` reports). Another deployment's URL (dev's, after a build with `.env.local`) fails; no deployment URL at all (a custom domain for the deployment) warns.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      Backend the site uses
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Fails when the page talks to another deployment; otherwise warns
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** An app built against dev serves production's visitors dev's data, signs them in there, and bills them nowhere. **Fix:** Build the app against production: set `NUXT_PUBLIC_BACKEND_URL` in the app host's production env to production's deployment, or build with `npx convex deploy --cmd 'npm run build' --cmd-url-env-var-name NUXT_PUBLIC_BACKEND_URL`; then redeploy the app ([Deployment](https://nuxt-backend.dev/docs/ship/deploy)). Check it again with `npx nuxt-backend doctor --only hosting --prod`.

### `agent-docs`

Production's `/llms.txt`, where the app serves docs for agents (nuxt-llms configured, as Docus does, or listed as a module): a text document that starts with a heading passes; anything else warns. An app that neither declares nor serves it gets no finding.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Title
    </th>
    
    <th>
      In dev
    </th>
    
    <th>
      Under <code>
        --prod
      </code>
    </th>
    
    <th>
      <code>
        --fix
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      Docs for agents
    </td>
    
    <td>
      Not checked
    </td>
    
    <td>
      Warns, never fails
    </td>
    
    <td>
      No
    </td>
  </tr>
</tbody>
</table>

**Why it matters:** Coding agents read `/llms.txt` to learn the app's docs; a declared one that is missing points them at nothing. **Fix:** Check the `llms` options in nuxt.config, and that the build ran its module. Check it again with `npx nuxt-backend doctor --only hosting --prod`.

## The report

`doctor --json` prints one document, described by [its JSON Schema](https://nuxt-backend.dev/schemas/doctor.json):

<table>
<thead>
  <tr>
    <th>
      Field
    </th>
    
    <th>
      What it is
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        $schema
      </code>
    </td>
    
    <td>
      This schema's URL.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings
      </code>
    </td>
    
    <td>
      Every check that ran, in report order. <code>
        --only
      </code>
      
       limits them to some capabilities.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        summary
      </code>
    </td>
    
    <td>
      One line: <code>
        <n> checks ✓
      </code>
      
       (<code>
        1 check ✓
      </code>
      
       for one) when every check passes, the count and the ids of the findings that warn or fail when some do (<code>
        2 findings: auth-secret, site-url
      </code>
      
      ), and <code>
        no checks ran
      </code>
      
       when none did.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].id
      </code>
    </td>
    
    <td>
      Stable across releases: a removal or rename follows the deprecation cycle in STABILITY.md.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].capability
      </code>
    </td>
    
    <td>
      The capability the finding is about, and the name <code>
        --only
      </code>
      
       selects it by. A finding never moves between capabilities in a minor release.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].title
      </code>
    </td>
    
    <td>
      A short label. Its wording may change in any release.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].status
      </code>
    </td>
    
    <td>
      <code>
        fail
      </code>
      
       breaks the app or a deploy; <code>
        warn
      </code>
      
       is a designed degradation or an unreachable check; <code>
        pass
      </code>
      
       is healthy.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].message
      </code>
    </td>
    
    <td>
      What the check found. Its wording may change in any release.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].fixHint
      </code>
    </td>
    
    <td>
      What to do about it: a command when there is one. Empty for a pass.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        findings[].docsUrl
      </code>
    </td>
    
    <td>
      The finding's entry in the docs: <a href="https://nuxt-backend.dev/d/" rel="nofollow">
        https://nuxt-backend.dev/d/
      </a>
      
      <id>
        .
      </id>
    </td>
  </tr>
</tbody>
</table>


## Sitemap

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