---
title: "Upgrade to a new version"
description: "Move your app to a new release: install it, let `nuxt-backend upgrade` repair the scaffold and run the package's data migrations, then read the changelog. 0.2.0 is the first release, so no codemod rewrites your code."
canonical_url: "https://nuxt-backend.dev/docs/ship/releases/upgrade"
---
# Upgrade to a new version

> Move your app to a new release: install it, let `nuxt-backend upgrade` repair the scaffold and run the package's data migrations, then read the changelog. 0.2.0 is the first release, so no codemod rewrites your code.

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

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

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

`0.2.0` is the first release of the package: `0.1.0` on npm was a throwaway test publish. So an app has nothing to migrate from, and no codemod rewrites its code. From `0.2.0` on, every release moves your app forward the same way:

```bash
npm install nuxt-backend@latest
npx nuxt-backend upgrade --dry-run   # what it would repair and migrate; nothing written
npx nuxt-backend upgrade             # the scaffold and the dev deployment's data
```

- **Scaffold.** It makes the repairs `npx nuxt-backend doctor --fix` makes: the scaffold files, mounts and routes the new version adds. The rest of `backend/` stays as it is.
- **Data.** It runs the package's own data migrations on the dev deployment, once that runs the new backend: start `npx nuxt-backend dev` once. Production's migrations run with its deploy, when that is `npx nuxt-backend deploy` or `deploy --build`; a deploy that runs `convex deploy` itself leaves them to `npx nuxt-backend upgrade --prod --yes` after it.

`upgrade` rewrites none of your code. A release that renames or removes a public name says so in the [changelog](https://nuxt-backend.dev/docs/ship/releases/changelog), with the edit to make, and keeps the old name working for at least one minor release ([Stability](https://nuxt-backend.dev/docs/ship/releases/stability#deprecation)). After the upgrade, run `npx nuxt-backend doctor`, which names any scaffolded function your `backend/` files no longer export, then your type check.

A release that renames, reshapes or removes a public name adds a section here, newest first, with the edit to make. The upgrade skill carries the same names in its rename map, so a coding agent finds the new name in the installed package.

An app built on a preview of `main` before `0.2.0` (`npm install https://pkg.pr.new/qruto/nuxt-backend@main`) makes each edit by hand, from the [Upgrade page as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md). It lists every change between the previews, newest first: start at the first section newer than the build and work up.

## The module requires Nuxt 4.7.0

The module's compatibility moves from `^4.6.2` to `^4.7.0`: Nuxt 4.6 no longer builds with Vite 8.4, as rolldown refuses Nuxt's own `unctx` import. On an older Nuxt, Nuxt disables the module with its incompatibility warning.

**What to do**

- Move the app to Nuxt `4.7.0` or later (`npm install nuxt@^4.7.0`), then run `npx nuxt-backend upgrade`.

## A composable falls back when the app lacks its backend file

0.4 provided Convex's whole generated `api`, which answers any name. A composable whose backend file the app doesn't have (`backend/access.ts`, `backend/referrals.ts`, `backend/waitlist.ts`, `backend/jobs.ts` or `backend/storage.ts`) called functions the deployment lacks, and the packaged `/waitlist`, `/invite` and `/r/:code` pages failed that way. 0.5 provides only the modules `_generated/api.d.ts` lists.

- An app without `backend/access.ts` reads as public, with no warning.
- Without `backend/referrals.ts`, `/r/<code>` says the link no longer works.
- In development, a composable whose file is missing now prints its one-time warning, as it was meant to.

**What to do**

- **An app that commits _generated/**: commit it again after adding a backend file. `npx nuxt-backend dev` rewrites it as you work, and a build reads the file as committed. A module the file doesn't list reads as absent.

## `doctor --fix` asks before it syncs email, and a deploy runs the package's migrations

Two CLI steps no longer act without being asked, or wait to be asked.

- **The email sync in doctor --fix.** 0.3 ran `email sync` as part of `doctor --fix`, `--prod` included, and never asked. It now plans the sync as a dry run first: the topics and segment, the lifecycle flows, the support inbox, the provider ids it would store and the webhook secret it would keep on the deployment. It applies them on a yes at a terminal, or with `--yes`. Without a terminal and without `--yes`, it lists them and writes nothing. A sync that fails now fails `doctor --fix`.
- **Migrations with the deploy.** `npx nuxt-backend deploy` and `deploy --build` now run the package's data migrations and the workpool's backfill after a production push. A migration that fails fails the deploy. One that production did not answer is reported, as a `skipped` step by `deploy` and a warning by `deploy --build`, and neither fails the deploy for it; `npx nuxt-backend upgrade --prod --yes` finishes it. When `deploy --build` fails on a migration, the backend is already live and the host keeps serving the previous app until the next deploy.

**What to do**

- **A CI job that runs doctor --fix** and counts on it to sync email: add `--yes`.
- **A pipeline that runs npx nuxt-backend upgrade --prod --yes after npx nuxt-backend deploy**: the step finds nothing left to run, so it can go. Keep it after a deploy that runs `convex deploy` itself.

## A replaced page follows its shape, and `nuxt dev` serves its modules from a path of their own

- **Which page replaces a packaged one.** An app page at a packaged page's path replaces it when the two have the same shape: `app/pages/r/[code].vue` replaces the referral page at `/r/:code`, where 0.3 registered both. A catch-all or optional page (`r/[...slug].vue`, `r/[[code]].vue`) replaces nothing, and the packaged page stays beside it ([Put your own page at its path](https://nuxt-backend.dev/docs/build/ui/customize/parts#put-your-own-page-at-its-path)).
- **A public replacement of a private page is indexable.** Your page at a private packaged page's path, an app's own `/gifts` shop for one, drops the inherited `noindex`, the sitemap exclusion and the `X-Robots-Tag` header @nuxtjs/robots made of them. It keeps `Cache-Control: private, no-store`, and a page with `auth` rules keeps every private rule ([Search engines](https://nuxt-backend.dev/docs/build/ui/pages#search-engines)).
- **Dev assets.** On `nuxt dev`, every module is served `Cache-Control: no-cache` unless the app sets its own in `vite.server.headers`, and an app that sets no `app.buildAssetsDir` gets them from `/_dev/` instead of `/_nuxt/`. The rate limiter, HSTS and `upgrade-insecure-requests` stay off on `nuxt dev` even when the app sets `security` options, unless it sets them under `$development` ([Run the dev loop](https://nuxt-backend.dev/docs/develop/dev-loop#what-the-dev-server-keeps-out-of-the-browser)).
- **Chunk-load recovery.** A production build reloads a page once when its code fails to load before the app has started (`chunkRecovery`, on by default).
- **The contact form on development.** On a `development` deployment, the team's copy of a contact message goes to the sandbox inbox (`delivered@resend.dev`), where the dev inbox reads it. Elsewhere outside production, test mode holds it back as before.

**What to do**

- **A dev proxy rule, end-to-end test matcher or service worker that matches /_nuxt/ in development**: match `/_dev/` as well, or set `app.buildAssetsDir`.
- **A catch-all page meant to replace a packaged one**: give it the packaged page's shape (`[code].vue` for `/r/:code`), or turn the packaged page off (`backend.pages.referral: false`).
- **A public replacement you want kept out of search**: set `robots: false` on its path yourself.
- **security: false with a Content-Security-Policy of your own**: allow the recovery script (`'unsafe-inline'`, or your own nonce on every script in the head), or set `chunkRecovery: false` ([Module options](https://nuxt-backend.dev/docs/reference/configuration/module-options)).

## Plan switches ask first, and prices keep their currency's own digits

- **Switches.** `<PricingTable>` and the settings' plan section ask before a subscriber switches plans, and say when the change applies and how it settles. The switch is sent with `proration: 'invoice'`, so the difference is billed at once whatever the organization's default (a yearly price left for a monthly one still waits for the paid year's end). A gifted plan's holder is asked too, and then checks the new plan out in place of the pass, which the server used to refuse. `usePricing().bind.planAction` switches the same way, without asking ([A switch says what it does first](https://nuxt-backend.dev/docs/build/billing/subscriptions#a-switch-says-what-it-does-first)).
- **Money.** 0.3 divided every amount by 100, so a ¥1,500 price showed as ¥15. Amounts now follow the currency's smallest unit as the provider states it: whole units for JPY, KRW and the other zero-decimal currencies (CLP, VND, XOF and ten more), thousandths for BHD, JOD, KWD, OMR and TND, hundredths for everything else. A whole amount shows no decimals, and any other shows every digit of that unit. The renewal email writes a price the same way, so a whole USD price reads $99 there, where 0.3 wrote $99.00. Money and dates are written in the app's locale, never the visitor's: without @nuxtjs/i18n that is English for every visitor, where 0.3 used the visitor's own locale ([Pricing page](https://nuxt-backend.dev/docs/build/billing/pricing-page)).

**What to do**

- **A test or snapshot that pins a formatted price**, in a zero-decimal currency or a whole amount in the renewal email: update it.
- **An app without @nuxtjs/i18n whose visitors read another language**: add @nuxtjs/i18n, or pass `locale` to `formatBillingAmount` yourself.
- **An end-to-end test that switches plans on <PricingTable>**: confirm the step it now asks.
- **A switch flow that counts on the organization's proration default**: the packaged confirmations always bill the difference at once. Call `changePlan` yourself with the proration you want.

## An app's own error sentence keeps winning, and the browser's install banner stays

- **Refusal wording.** A refusal from a service that is down now reads the package's sentence for that service (`errors.unavailable_<service>`, such as `errors.unavailable_billing`) when no sentence for the reason fits. The app's own labels are searched first, from the most specific key to the code's own, then the package's: a sentence you set for `errors.unavailable` or for one reason keeps winning, over the new service sentences too ([Where a label comes from](https://nuxt-backend.dev/docs/build/ui/customize/labels#where-a-label-comes-from)). With @nuxtjs/i18n in de, es, fr or ru, the package's translation of a more specific key still beats a generic sentence from your locale files; put that sentence in app config's `labels` for it to win.
- **The install prompt.** `useInstallPrompt()` is new: it keeps the browser's install event for a button of the app's own, and leaves the browser's own install banner (Chrome on Android) showing ([Offer the install from your app](https://nuxt-backend.dev/docs/build/email/notifications/installable#offer-the-install-from-your-app)).

**What to do**

- **An app that worded errors.unavailable or a reason's sentence** to cover every service: nothing; set `errors.unavailable_<service>` to word one service apart.
- **An app with its own install button** that doesn't want the browser's banner as well: set `backend.installable.browserBanner: false`.

## Member tickets credit their member as a referral, and tokens leave the address bar

- **Referrals from member tickets.** `access.memberTickets({ referrals })` takes the app's `setupReferrals` instance: each friend a member's ticket admits is claimed as the member's referral on the server, as their account is made, whichever page or browser they signed up from ([Let members bring friends](https://nuxt-backend.dev/docs/build/growth/launch/invites#let-members-bring-friends)).
- **Tokens.** `/waitlist` keeps a status token in the tab, never in the address, as `/invite` already did with an access link's. A bookmarked `/waitlist` no longer holds a place: the status email's link is the way back.
- **Absolute links on the server.** The links the pages and composables build (share, ticket, referral, access, checkout) are absolute in the server's render, built from the request's own `Host`, where 0.3 rendered them as paths on the server.

**What to do**

- **A member-ticket program beside a referral program**: pass the referrals in `backend/access.ts`, `access.memberTickets({ referrals })`, with `referrals` imported from `backend/referrals.ts`.
- **Behind a proxy of your own**: have it pass the browser's `Host` on, as the hosting platforms do.

## A job waits for billing to catch up, and owes a charge the provider refuses for now

Three job outcomes change. No public name changes with them.

- **Billing not caught up.** A job whose first step found a balance with no credit meter yet, or an owner with no billing customer yet, failed at once with `insufficient_credits` (`balance: 0`). It now waits about five minutes, its hold still taken, and runs once billing catches up. If billing never does, it fails with that `not_ready` refusal (reason `not_synced` or `no_customer`). Only a balance short of the credits fails it with `insufficient_credits` ([When credits move](https://nuxt-backend.dev/docs/build/ai/jobs/credits#when-credits-move)).
- **A charge by output the provider refuses for now.** A `charge: 'output'` kind whose `job.charge` the billing provider refused failed the job, as a charge at start does. When the refusal may pass (no answer, a `408`, `429` or `5xx`, or no billing customer yet), the job now runs on and ends `done`, its result kept and its credits held. The queue tries the charge again in the background ([When the billing provider refuses the charge](https://nuxt-backend.dev/docs/build/ai/jobs/credits#when-the-billing-provider-refuses-the-charge)). Any other `4xx`, such as a revoked access token's `401` or a missing product's `404`, no longer fails the job either: it stays `done`, the charge is given up at once with its hold back, `onOwedCharge` hears `given_up`, and `ai.job_charge_refused` is logged. A charge at start refused that way still fails its job.
- **An image call that draws nothing.** A step whose `generateImage` threw `NoImageGeneratedError` failed the job at once with `job_failed`. It is now tried once more, and fails with `provider_refused` after that. An empty answer that gives a finish reason for safety fails at once with `content_blocked` ([Which errors fail a job](https://nuxt-backend.dev/docs/build/ai/jobs/model-limits#which-errors-fail-a-job)).

**What to do**

- **Read not_ready on a failed job apart from insufficient_credits.** It says billing had not caught up, not that the person ran out of credits: send them to the pricing page on `insufficient_credits` only.
- **For a kind charged by output**, read `owed` on `onJobEnd` and `jobs.get` before you mark a `done` job paid, and pass `defineJobQueue({ onOwedCharge })` to hear how the owed charge ends. Watch for `ai.job_charge_refused`: it names a billing setup to fix before **Retry the charge**.
- **For an image model that draws nothing now and then**, throw `retryable(message)` from the step yourself to keep four attempts.

## `billing sync` prices every product in the organization's currency, and attaches the benefits a product lacks

The provider now makes no product without a price in the organization's default presentment currency, whatever currency the catalog pins. 0.2 created every price in the catalog's `currency`, and a new product on an organization that defaults to another currency failed on the provider's raw refusal. 0.3 reads the organization's currency first and refuses, in one line before it creates anything, a catalog with a paid plan or pack that has no price in it. The free plan's product and a plan's pass are priced at nothing in it by the sync itself. And a plan's product the sync finds by its key no longer keeps only the benefits it was made with: the sync attaches the catalog's credit grant or feature it lacks, and the provider grants it to the product's current subscribers too. A pack's product is left as it is and reported as `drift`, since the provider would credit everyone who ever bought it.

**What to do**

- **A catalog priced in its pinned currency alone**, on an organization that defaults to another: add that currency to every paid plan's and pack's prices (`prices: { usd: { month: 1200 }, eur: { month: 1100 } }`), or change the organization's default currency in the provider dashboard. `npx nuxt-backend doctor` names each one ([`billing-currency`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-currency)).
- **A benefit attached to an existing product by hand**, or one you meant to leave off: run `npx nuxt-backend billing sync --dry-run` first. Each `would-attach` line is a benefit the sync attaches, and its subscribers are granted. A product that grants other credits on the same meter is reported as `drift` and left as it is ([`billing-plan-benefits`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-plan-benefits)).

## The Better Auth client loads on first use, and a failed server call names its function

The package now runs on `nuxt-convex-module` 0.14 (`nuxt-convex-module@^0.14.0`), which loads the Better Auth client the first time something needs it instead of with every page. A signed-in visitor gets it at startup, beside the page; a page a signed-out visitor only reads downloads none of it, and the starter's entry is about 11 kB (gzip) smaller. An app that reads the session with `useAuth()` and signs in through `useLoginFlow` or the packaged pages changes nothing.

- **An auth client module of your own** (`convex.betterAuth.authClient`) evaluates on first use: keep its top level to creating the client.
- **Code that imports the client from nuxt-convex-module/better-auth/client.** Until the client has loaded, `useBetterAuth().client` forwards: a call (`$fetch` included), a `use*` hook and a store's `listen` work as before, but a value read without a call, such as `$store.atoms` or a plugin's atom, is a stand-in. Read `useBetterAuth().client.$store` as `(await loadAuthClient()).$store` instead.
- **A test of your own against the real client** (`nuxt-backend/test-utils` loads its mock for you) that signs in and reads the session a `nextTick` later: `await loadAuthClient()` in a `beforeAll` first.
- **To load it at startup as before,** set `NUXT_PUBLIC_CONVEX_DEFER_AUTH_CLIENT=false`. A webpack or rspack build always does.
- **A failed fetchQuery, fetchMutation or fetchAction on the server** puts the function in front of its message, `[CONVEX Q(module:fn)] …`, as the browser client always has, and error reports now carry it. The error is the one that was thrown, with its class and `data`: code that compared a server failure's `message` reads `getBackendError(error)` instead.

## The upload field retries a failure, and prepares a file before it uploads

`<UploadField>` and `useUploadField` run on the base module's `useUploadQueue`, one file at a time. A refusal (your `claim` throwing `invalid_input`, `quota_exceeded`, …) leaves the field `refused`, and the picker asks for another file. A failure on the way leaves it `error` with a Try again button, which picks up where the file stopped: the claim alone once the file is stored, the transfer otherwise.

- **useUploadField({ claim, prepare })** and `<UploadField :prepare>` take a function that turns the picked file into what is sent (a photo shrunk or re-encoded in the browser). Drop a wrapper that did that before calling `pick`.
- **Markup of your own** from `useUploadField` gets `retry` and `bind.retry`, for its own Try again button, and the `error` slot's scope adds `refused` and `retry`.
- **Translations.** The `upload` label group adds `retry`; the package's own locales have it, and a locale of yours shows the English until you add it.

## Emails and notifications read the labels app config sets

0.2 worded the emails, a notification's email and its push from `setupEmail`'s messages alone: a label set in app config (`backend.labels`) changed the pages and the inbox, not what the backend sent, so an app wrote the same copy twice, once in app config and once in `messages`. 0.3 carries app config's labels to the backend as `labels.generated.ts`, a new scaffold file the module rewrites on every start, as it does `brand.generated.ts`, and `setupEmail` reads them before its messages, as the pages do ([Labels reach the backend](https://nuxt-backend.dev/docs/build/ui/customize/labels#labels-reach-the-backend)).

- **Pass the labels on.** `npx nuxt-backend upgrade` writes `backend/labels.generated.ts`, but never edits `backend/email.ts`: add `import { labels } from './labels.generated'`, and turn setupEmail({ paths, brand }) into setupEmail({ paths, brand, labels }). Then drop what your `messages` repeated from app config, and the copy file both imported, if that was all it was for. `doctor` warns while the file is missing or out of date (`labels-file`).
- **The email group joins app config.** `labels.email` rewords the package's emails like any other group.
- **The credit words say {unit}.** The `billing.credits_low` and `billing.credits_exhausted` notifications, the low-credits email, a received gift and the cancel flow name what the credits count, from the `credits` group's `unit`, where they said "credits". An override of yours keeps its own words; one written for the old English leaves `{unit}` out, and development says so.

## Moderation verdicts name shared categories

`ai.moderate` answered `categories` with the classifier's own codes, such as Llama Guard's `S12`. It now answers the shared categories every provider maps onto (`sexual`, `hate`, `minors_sexual`…) in `categories`, and the codes in `codes`, beside `scores` and `providers`. `block` and `escalate` take either, so a policy written in codes keeps working.

**What to do**

- Read `verdict.codes` where you read Llama Guard's codes from `verdict.categories`, or move to the shared names ([Choose moderation providers](https://nuxt-backend.dev/docs/build/ai/content-safety/providers#read-the-categories)).
- `moderation.model` is now also `moderation.text`: name the classifier one way or the other.

## A production checkout waits for billing to launch, and welcome credits come from the catalog

A production deployment with no `BILLING_ACCESS_TOKEN`, or no production catalog, is [not launched](https://nuxt-backend.dev/docs/build/billing/setup#before-billing-launches): its pricing reads "Plans open soon", and a checkout, a gift checkout or a switch to a paid plan is refused before anything reaches Polar. 0.2 refused that sale as `unavailable` (reason `not_configured`) from a production checkout, or, with a token but no production catalog, as `not_ready` (reason `no_catalog`) from a production checkout; 0.3 refuses both as `unavailable` (reason `not_launched`), whose label reads "Plans open soon". Every other deployment, and every other provider call, keeps `not_configured` and `no_catalog`.

- **A switch of your own for when sales open goes.** An app that hides its pricing and gift links behind a flag of its own (`salesOpen` in app config, say) reads `usePricing().launched` instead, and the packaged pricing table and gifts page follow it with no change.
- **Welcome credits move to the catalog.** An app that grants them itself, with billing.refundCredits in onUserCreated, declares them on the free plan instead, `credits: { meter, units, once: true }`, then runs `billing sync`. The package grants them once per person (the owner's address, as the reverse trial counts it) on a first start, as soon as the reverse trial begins rather than when it ends, under the key `welcome:<entityId>`. Accounts that already hold a plan get nothing new. Delete the hand-rolled grant in the same change.
- **The package counts people from the upgrade on.** It never reads the grants your code made, so a person one reached can get the package's as well, once: with the first workspace they make after the upgrade (`billTo: 'workspace'`), or with an account they make again. A start that runs again within an hour of a free plan's start, a retry or the `billing:startFreePlan` backfill, takes it for a first start whose answer was lost and grants too: Polar drops that grant only when yours used the same key, as an app that keyed `welcome:<userId>` with `billTo: 'user'` did. Run the backfill no sooner than an hour after the deploy.
- **A refund under a key Polar holds credits the cached balance once.** `refundCredits` with an `externalId` Polar already took no longer credits the cached balance a second time, and a refund for an entity never synced reads it from Polar first, so the cache holds the credit.
- **PricedPlan.gift** lists a giftable plan's lengths at their live prices: an app that priced a pass as months times the monthly price reads `plan.gift.lengths` instead.

## A job step stops its model calls at its timeout

A job step's model calls ran until the stall sweep failed the job. `jobs.step` now aborts them at the step's `timeout`: by default 3 minutes, or 80% of the queue's `stallAfter` when that is less. The step is tried again, as after a provider's timeout, and a `timeout` at or above `stallAfter` is refused where the step is defined.

**What to do**

- Give a step whose calls legitimately run longer its own `jobs.step({ timeout })`, below `stallAfter` ([Model limits](https://nuxt-backend.dev/docs/build/ai/jobs/model-limits)).
- Pass `ctx.callSettings` to `generateText` and `generateImage`, or `ctx.signal` as `abortSignal`, for a call the step makes outside `ctx.model()` and `ctx.image()`.

## Members bring friends with a ticket of their own, and the waitlist records the campaign

- **Member tickets come from the package.** An app that minted an access link for each member itself, with access.invites.create with a label per member and a table of its own to read it back, re-exports `access.memberTickets({ uses, lifetime })` from `backend/access.ts` instead, and reads it with `useMemberTicket()` ([Let members bring friends](https://nuxt-backend.dev/docs/build/growth/launch/invites#let-members-bring-friends)). Its links keep working until they expire: they are access links like any other. The package does not read the app's table, so a member who asks again gets a ticket of the package's; revoke the old links in the Access tab if a member should not hold both. An account a member ticket admitted holds none of its own unless you pass `chain: true`, and a switch of your own goes in `enabled`.
- **The waitlist records the campaign.** useWaitlist({ source }) now records the page address's `utm_source` and `utm_campaign` after the source, as `landing:newsletter/launch`. Drop a helper that built that source yourself and pass the form's alone, or pass useWaitlist({ source, campaign }) with `campaign: false` to record the source as before.

## A job joins on a balance never read

`jobs.enqueue` refused a job with `not_ready` (reason `not_synced`) whenever the credit balance was not in this deployment's cache. Only a balance this deployment has never read now lets the job join: it holds nothing yet, and its first step reads the balance and takes the hold, or fails the job `insufficient_credits` before any model is called. A balance that was read and holds no credit meter is still refused `not_ready` at enqueue.

**What to do**

- Drop a `try`/`catch` around `jobs.enqueue` that only waited out `not_synced` for a new account's first credits: the job joins.
- Keep handling `not_ready` from `enqueue` for an owner with no credit meter, and `insufficient_credits` on a job that failed short of credits ([Credits and jobs](https://nuxt-backend.dev/docs/build/ai/jobs/credits)).

## Report forms send notices, and the legal pages fill your own

The report form you build into your pages is a notice the law asks a host to accept, and the legal pages' facts reach a Content page of yours ([Moderation](https://nuxt-backend.dev/docs/ship/compliance/moderation#build-the-report-form-into-your-own-pages), [Privacy](https://nuxt-backend.dev/docs/ship/compliance/privacy#write-your-own-pages-in-content)).

- **Reports.** Replace a hand-rolled `useMutation(api.admin.reportContent)` with `useReportForm(subject)`, which sends a notice (DSA Art. 16) through `sendNotice` with every field it requires, a receipt and the decision by email, or with `useReportForm(subject, { mode: 'quick' })` for a signed-in person's one-click report. `reportContent({ website })` and `sendNotice({ website })` take an optional honeypot, and `getConsentTerms` also returns `documents`: deploy the backend.
- **Six component names are global.** `LegalProcessors`, `LegalStorage`, `LegalDetail`, `LegalVersion`, `LegalContactPoints` and `LegalModeration` are registered globally, so Markdown renders them. A component of yours under one of these names replaces the package's everywhere, the packaged legal pages included: rename yours unless that is what you mean.
- **The terms page says more.** Once the report page is on, a section says how content is moderated; the Contact section lists your DSA points of contact; a mediator gets a Disputes section; the privacy policy and the terms print their version once `setupAccount({ consents })` declares it. In development, the terms page names `legal.contactPoints.authorities` and `legal.contactPoints.languages` while they are unset.
- **The manifest.** `backend.installable` is checked as the module starts; an app whose `public/` holds RealFaviconGenerator's `web-app-manifest-192x192.png` and `web-app-manifest-512x512.png`, and no manifest of its own, now gets the module's.

## Browser error reports go through a tunnel on the app's own origin

The package's Sentry configs send the browser's reports through Sentry's managed tunnel, a path on the app's own origin that the Nuxt server forwards to the ingest, so ad blockers don't drop them. It needs `@sentry/nuxt` 11.10, and the peer range is now `^11.10.0`.

- **Upgrade the SDK:** `npm install @sentry/nuxt@^11.10.0`. An older one still builds and reports, straight to the ingest as before, and the build and `doctor` (`monitoring-app`) warn.
- **An app with only its own sentry.server.config.ts:** the package's browser config reports straight to the ingest, and the build says so. For the tunnel, add `Sentry.serveTunnelIntegration()` to your server config first, then a `sentry.client.config.ts` with `tunnel: true`: a client that posts to the tunnel before your server answers it loses every report ([Customize the SDK](https://nuxt-backend.dev/docs/ship/operate/monitoring#customize-the-sdk)).
- **An app with its own sentry.client.config.ts:** nothing to change; the ingest's origin stays in `connect-src`. Add `tunnel: true` to report through the tunnel, once a server config answers it: the package's, or yours with `Sentry.serveTunnelIntegration()`.
- **On Vercel,** every page view now invokes the server function, prerendered pages included, and the tunnel is outside nuxt-security's rate and size limits ([What the tunnel costs](https://nuxt-backend.dev/docs/ship/operate/monitoring#what-the-tunnel-costs)).

## The packaged UI reads its faces, lines and shadows from tokens

Seven tokens take the packaged components past colour: `--bk-font`, `--bk-font-heading` and `--bk-font-control` (the faces), `--bk-border-width` (every outline) and `--bk-shadow`, `--bk-shadow-control` and `--bk-shadow-overlay` ([Restyle with tokens](https://nuxt-backend.dev/docs/build/ui/customize/tokens#faces-lines-and-shadows)). The outermost element of every packaged component and page carries `data-backend`, so one selector reaches them all: replace a list of families in your CSS, such as `[data-auth='form'], [data-pricing='table'], [data-admin]`, with `[data-backend]`. `<AppShell>` frames your own pages, so its root carries none.

With no token set, most of the UI looks as it did. What changes:

- **Dialogs float.** The confirm, re-authentication and consent dialogs, the AI label's details and the admin drawer cast `--bk-shadow-overlay`, a black shadow. The account menu, the workspace switcher and the inbox panel move to the same shadow, which no longer glows on a dark page, and the storage question's darker shadow becomes it too.
- **Multi-line fields have card corners.** The contact message and the cancellation comment use `--bk-radius` instead of a pill.
- **Every packaged button takes the page's font.** The buttons of `<CancelFlow>`, `<WithdrawalButton>`, `<AccessDenied>`, the past-due notice and the workspace switcher's create button used the browser's button font; they take `font: inherit` like the others.
- **The current plan's ring is an outline.** It is drawn with `outline` instead of `box-shadow`, so the card keeps `--bk-shadow`; a rule of yours that restyled that ring's `box-shadow` styles `outline` now.

A heading or a root face rule of yours, in any layer, wins over the face tokens: they sit in `nuxt-backend-tokens`, below every layer.

## Passkeys check the person, and a ban says when it ends

0.2 asked a passkey's device to check the person (a fingerprint, a face or the device's PIN) as `preferred`, and took a passkey that skipped it. 0.3 requires it (`userVerification: 'required'`): at registration, at every sign-in and in `useReauthentication().withPasskey`, the server refuses a passkey whose device did not check the person ([Limits](https://nuxt-backend.dev/docs/build/auth/sign-in#limits)).

- **A security key with no PIN.** A passkey a security key with no PIN set saved under 0.2 is refused from now on. The passkey's row keeps no verification flag, so those accounts can't be found in advance: the person reads `invalid_input` on `passkey`, whose label names the PIN, or `passkey_cancelled` when the browser gives up on the key. They set a PIN on the key (Chrome offers to) or sign in with an email code; a passkey-only account uses its recovery code, or an administrator's `allowSignInCodes`.
- **Your own passkey(...)** in `authOptions.plugins`: add `authenticatorSelection: { userVerification: 'required' }` to it. Without it, a passkey that never checked the person still signs in.
- **resolveSignInMethod is deprecated.** Better Auth 1.7 names a code sign-in `email-otp` itself: drop `customResolveMethod: resolveSignInMethod` from a `lastLoginMethod(...)` of your own. It keeps working until a later minor release removes it.
- **A ban names its end.** A banned account's refusal (`forbidden`, reason `banned`) carries `until`, and the person reads the new `errors.forbidden_banned_until` label. An `admin.bannedUserMessage` of your own changes nothing the person sees and drops `until`: delete it, and word the refusal with the `errors.forbidden_banned` and `errors.forbidden_banned_until` labels ([What an administrator may do](https://nuxt-backend.dev/docs/build/auth/admin#what-an-administrator-may-do)). A locale of yours shows the English of the new label until you add it.

## Better Auth 1.7, and a deploy for the backend's schema

The package runs Better Auth 1.7 (`better-auth@>=1.7.16 <1.8.0`) on `@convex-dev/better-auth` 0.13, which closes the security advisories every Better Auth 1.6 release carries.

- **A Better Auth plugin you add through authOptions** must support 1.7. Code of yours that imports `getIp` from `better-auth/api` imports `getIP`.
- **Deploy the backend.** The `backend` component's schema gains the `jwks` fields `alg` and `crv`, an `account` index and the tables behind welcome credits and moderation flags; existing rows stay valid. Start `npx nuxt-backend dev` once, then run `npx nuxt-backend upgrade`; in production, `npx nuxt-backend upgrade --prod --yes` after the deploy. Its data half now also runs the workpool's backfill (`migrations:backfillPendingStartIds`) in every pool, which the workpool's 0.5 line needs: run it before a later release moves there.
- **Pending email-change codes.** A code requested before the deploy no longer matches: the person asks for a new one.

## Before 0.2.0

The previews of `main` made these changes before `0.2.0`, newest first. `0.2.1` links each one from its errors, warnings and skills, so each keeps its heading here, and its link opens the section as `0.2.1` published it.

### One way to do each thing

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#one-way-to-do-each-thing)

### One variable says what kind of deployment this is

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#one-variable-says-what-kind-of-deployment-this-is)

### Development runs on the providers' sandboxes, with nothing simulated

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#development-runs-on-the-providers-sandboxes-with-nothing-simulated)

### The MCP endpoint for your users' agents waits for the next release

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-mcp-endpoint-for-your-users-agents-waits-for-the-next-release)

### Every public name says workspace, never organization

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#every-public-name-says-workspace-never-organization)

### Deleting an account is immediate, and erases it everywhere

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#deleting-an-account-is-immediate-and-erases-it-everywhere)

### The free plan is a subscription, and prices come in the visitor's currency

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-free-plan-is-a-subscription-and-prices-come-in-the-visitors-currency)

### Emails share one layout, and speak their recipient's language

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#emails-share-one-layout-and-speak-their-recipients-language)

### An impersonation lasts thirty minutes, and never visits an administrator

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#an-impersonation-lasts-thirty-minutes-and-never-visits-an-administrator)

### Feature gates match one key, and the server enforces them

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#feature-gates-match-one-key-and-the-server-enforces-them)

### Plans have a monthly and a yearly price, and pricing renders on the server

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#plans-have-a-monthly-and-a-yearly-price-and-pricing-renders-on-the-server)

### Sensitive actions ask for a recent sign-in

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#sensitive-actions-ask-for-a-recent-sign-in)

### The billing section follows the subscription, and cancelling takes one step

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-billing-section-follows-the-subscription-and-cancelling-takes-one-step)

### Passkey sign-ins spend a limit, and the sign-in form opens on the last way in

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#passkey-sign-ins-spend-a-limit-and-the-sign-in-form-opens-on-the-last-way-in)

### A dev push refuses a deploy key for another deployment

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#a-dev-push-refuses-a-deploy-key-for-another-deployment)

### `doctor` and its JSON speak in capabilities

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#doctor-and-its-json-speak-in-capabilities)

### The backend cleans up after itself, and secret emails leave no record

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-backend-cleans-up-after-itself-and-secret-emails-leave-no-record)

### The packaged UI keeps the component contract

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-packaged-ui-keeps-the-component-contract)

### Every word is a label, and `@nuxtjs/i18n` translates them

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#every-word-is-a-label-and-nuxtjsi18n-translates-them)

### Data composables take options and report failures in `error`

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#data-composables-take-options-and-report-failures-in-error)

### Billing is managed by a workspace's owner and admins

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#billing-is-managed-by-a-workspaces-owner-and-admins)

### Auth composables resolve data and reject on failure

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#auth-composables-resolve-data-and-reject-on-failure)

### Billing composables take options and report failures in `error`

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#billing-composables-take-options-and-report-failures-in-error)

### Each workspace pays through a customer of its own, and gifts are paid by the purchaser

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#each-workspace-pays-through-a-customer-of-its-own-and-gifts-are-paid-by-the-purchaser)

### Checkout sells only your catalog, and returns only to your site

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#checkout-sells-only-your-catalog-and-returns-only-to-your-site)

### Refusals carry a code, and survive production

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#refusals-carry-a-code-and-survive-production)

### The surface says backend, never a provider

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-surface-says-backend-never-a-provider)

### One-time codes are checked per address, and the unused routes are off

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#one-time-codes-are-checked-per-address-and-the-unused-routes-are-off)

### Workspace actions reject when they are refused

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#workspace-actions-reject-when-they-are-refused)

### Every email comes from one registry, and every route is required

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#every-email-comes-from-one-registry-and-every-route-is-required)

### Email changes take a code from each address, and `setupAuth` is the one factory

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#email-changes-take-a-code-from-each-address-and-setupauth-is-the-one-factory)

### The welcome email and both sign-in methods are always on

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-welcome-email-and-both-sign-in-methods-are-always-on)

### Page paths, the stylesheet and the webhook log

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#page-paths-the-stylesheet-and-the-webhook-log)

### Workspaces and admin are always on

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#workspaces-and-admin-are-always-on)

### Local installation is gone

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#local-installation-is-gone)

### The scaffolded `send` is internal

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#the-scaffolded-send-is-internal)

### Sessions are listed and revoked by id

[The section as `0.2.1` published it](https://github.com/qruto/nuxt-backend/blob/v0.2.1/website/content/docs/05.ship/6.releases/4.upgrade.md#sessions-are-listed-and-revoked-by-id)


## Sitemap

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