---
title: "Packaged pages"
description: "Every page the module mounts, its pages key, who can open it and the component behind it; the frame around each; how to move one or turn it off with pages.<key>: false; and how search engines and caches treat them."
canonical_url: "https://nuxt-backend.dev/docs/build/ui/pages"
---
# Packaged pages

> Every page the module mounts, its pages key, who can open it and the component behind it; the frame around each; how to move one or turn it off with pages.<key>: false; and how search engines and caches treat them.

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

- [Try it live in the playground](https://nuxt-backend.dev/playground/settings)

Install the module and these pages exist, with no files of yours. Each is a thin wrapper around a packaged component, built from named [parts](https://nuxt-backend.dev/docs/build/ui/customize/parts), at a path its `pages` key sets, with the route rules a private page needs. Every page mounts unless you turn its key off: turn `pricing` off in an app that sells nothing.

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Route
    </th>
    
    <th>
      What it is
    </th>
    
    <th>
      Who can open it
    </th>
    
    <th>
      Built on
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        login
      </code>
    </td>
    
    <td>
      <code>
        /login
      </code>
    </td>
    
    <td>
      Sign-in with a passkey or an emailed code, then the offer to add a passkey
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      <code>
        <AuthForm>
      </code>
      
       · <code>
        useLoginFlow
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        pricing
      </code>
    </td>
    
    <td>
      <code>
        /pricing
      </code>
    </td>
    
    <td>
      The plans and credit packs, rendered on the server from the live catalog
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      <code>
        <PricingTable>
      </code>
      
       · <code>
        usePricing
      </code>
      
      , <code>
        useBilling
      </code>
      
      , <code>
        useCredits
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        settings
      </code>
    </td>
    
    <td>
      <code>
        /settings
      </code>
    </td>
    
    <td>
      The workspaces, members and invitations, the plan, credits, charges and invoices, usage, and the workspace's activity
    </td>
    
    <td>
      signed in
    </td>
    
    <td>
      <code>
        <WorkspaceSettings>
      </code>
      
       · <code>
        useWorkspace
      </code>
      
      , <code>
        <BillingHistory>
      </code>
      
      , <code>
        <UsageHistory>
      </code>
      
      , <code>
        <AuditLog>
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        profile
      </code>
    </td>
    
    <td>
      <code>
        /profile
      </code>
    </td>
    
    <td>
      The name, the email address, the language emails are written in, and an Email section for topics and channels
    </td>
    
    <td>
      signed in
    </td>
    
    <td>
      <code>
        <ProfileSettings>
      </code>
      
       · <code>
        useAccount
      </code>
      
      , <code>
        useEmailChange
      </code>
      
      , <code>
        useEmailPreferences
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        unsubscribe
      </code>
    </td>
    
    <td>
      <code>
        /unsubscribe
      </code>
    </td>
    
    <td>
      The email topics a person gets, from the one-click link every marketing email carries, and a double opt-in's confirmation (<a href="https://nuxt-backend.dev/docs/build/email/preferences">
        Let people choose their emails
      </a>
      
      )
    </td>
    
    <td>
      everyone with the signed link
    </td>
    
    <td>
      the package's unsubscribe page · <code>
        getEmailLink
      </code>
      
      , <code>
        unsubscribeByLink
      </code>
      
      , <code>
        confirmEmailTopic
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        security
      </code>
    </td>
    
    <td>
      <code>
        /security
      </code>
    </td>
    
    <td>
      Passkeys, sessions, the account's data export and deletion, and its recent activity
    </td>
    
    <td>
      signed in
    </td>
    
    <td>
      <code>
        <SecuritySettings>
      </code>
      
       · <code>
        usePasskeys
      </code>
      
      , <code>
        useSessions
      </code>
      
      , <code>
        <AccountData>
      </code>
      
      , <code>
        <AuditLog>
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        acceptInvitation
      </code>
    </td>
    
    <td>
      <code>
        /accept-invitation
      </code>
    </td>
    
    <td>
      Accepting or declining a workspace invitation, from the emailed link
    </td>
    
    <td>
      signed in
    </td>
    
    <td>
      <code>
        <AcceptInvitation>
      </code>
      
       · <code>
        useWorkspace
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        welcome
      </code>
    </td>
    
    <td>
      <code>
        /welcome
      </code>
    </td>
    
    <td>
      The first run a new account sees once after its first sign-in: name and picture, the workspace, teammates and a plan, with steps of your own (<a href="https://nuxt-backend.dev/docs/build/growth/engage/activation">
        Guide people to their first result
      </a>
      
      )
    </td>
    
    <td>
      signed in
    </td>
    
    <td>
      <code>
        <OnboardingFlow>
      </code>
      
       · <code>
        useOnboarding
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        invite
      </code>
    </td>
    
    <td>
      <code>
        /invite
      </code>
    </td>
    
    <td>
      The landing of an access link: it checks the token, or a code typed by hand, and sends the person on to sign in (<a href="https://nuxt-backend.dev/docs/build/growth/launch/invites">
        Hand out invite codes and access links
      </a>
      
      )
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      the page's own check · <code>
        useInvite
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        waitlist
      </code>
    </td>
    
    <td>
      <code>
        /waitlist
      </code>
    </td>
    
    <td>
      The join in early access, and a person's place in the queue from the signed link in their confirmation; it follows the launch phase (<a href="https://nuxt-backend.dev/docs/build/growth/launch/waitlist">
        Run a waitlist
      </a>
      
      )
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      <code>
        <WaitlistForm>
      </code>
      
       · <code>
        useWaitlist
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        gifts
      </code>
    </td>
    
    <td>
      <code>
        /gifts
      </code>
    </td>
    
    <td>
      The gifts a person sent and received, with resend, change, cancel and claim (<a href="https://nuxt-backend.dev/docs/build/growth/offers/gifts#manage-gifts">
        Send, receive and manage gifts
      </a>
      
      )
    </td>
    
    <td>
      signed in
    </td>
    
    <td>
      the page's own list · <code>
        useGifts
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        referral
      </code>
    </td>
    
    <td>
      <code>
        /r/:code
      </code>
    </td>
    
    <td>
      What a referral link opens: who invited the visitor and what they get, the way to sign up and come back to claim, and the claim itself (<a href="https://nuxt-backend.dev/docs/build/growth/offers/referrals#claim-a-referral">
        Run a referral program
      </a>
      
      )
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      the page's own panel · <code>
        useReferralInvite
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        keepAccount
      </code>
    </td>
    
    <td>
      <code>
        /account/keep
      </code>
    </td>
    
    <td>
      Keeping an account whose deletion is scheduled: one button, from the link in the email, with no sign-in
    </td>
    
    <td>
      everyone, with the link's token
    </td>
    
    <td>
      the page's own form · <code>
        cancelAccountDeletion
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        admin
      </code>
    </td>
    
    <td>
      <code>
        /admin
      </code>
    </td>
    
    <td>
      The admin console: accounts, workspaces, activity, feature flags and each capability's health
    </td>
    
    <td>
      the <code>
        admin
      </code>
      
       role, and a 404 for anyone else
    </td>
    
    <td>
      <code>
        <AdminUsers>
      </code>
      
       · <code>
        useAdmin
      </code>
      
      , <code>
        <AdminWorkspaces>
      </code>
      
      , <code>
        <AuditLog>
      </code>
      
      , <code>
        useFlagAdmin
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        privacy
      </code>
    </td>
    
    <td>
      <code>
        /legal/privacy
      </code>
    </td>
    
    <td>
      The privacy policy: who runs the app, the data map, the subprocessors, the cookies and a person's rights (<a href="https://nuxt-backend.dev/docs/ship/compliance/privacy#legal-pages">
        Legal pages
      </a>
      
      )
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      the page's own document · <code>
        appConfig.backend.legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        terms
      </code>
    </td>
    
    <td>
      <code>
        /legal/terms
      </code>
    </td>
    
    <td>
      The terms of service: the account, plans and the merchant of record while billing is in use, the content rules
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      the page's own document · <code>
        appConfig.backend.legal
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        subprocessors
      </code>
    </td>
    
    <td>
      <code>
        /legal/subprocessors
      </code>
    </td>
    
    <td>
      The services that process personal data for the capabilities the app uses
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      the page's own document
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accessibility
      </code>
    </td>
    
    <td>
      <code>
        /legal/accessibility
      </code>
    </td>
    
    <td>
      The accessibility statement (<a href="https://nuxt-backend.dev/docs/ship/compliance/accessibility">
        Meet the European Accessibility Act
      </a>
      
      )
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      the page's own document · <code>
        appConfig.backend.legal
      </code>
    </td>
  </tr>
</tbody>
</table>

A signed-out visitor to a private page goes to the `login` path, with the original destination as `?redirect=`, so sign-in returns them where they were headed. The admin console is a [hidden page](https://nuxt-backend.dev/docs/build/auth/access/pages#hide-a-page-from-everyone-else): anyone without the `admin` role, signed in or not, gets the 404 of a page that does not exist. A 403 from a page of yours is rendered by [`<AccessDenied>`](https://nuxt-backend.dev/docs/build/auth/access/pages#the-403-page) in the module's error page when the app has no `error.vue`.

## The frame

Each page sits inside one shared frame:

- **<main>**, with `data-backend-page` naming the page, then the `h1` and the document title, both from the component's [label group](https://nuxt-backend.dev/docs/build/ui/customize/labels#the-groups), so every page follows your copy and [translations](https://nuxt-backend.dev/docs/build/ui/customize/translation). The page also sets `<html lang>` to the active locale.
- **A notices region** before `<main>`, with [`<BackendNotices>`](https://nuxt-backend.dev/docs/build/ui/notices). It renders only when a notice applies.
- **A status region** closing `<main>`, with [`<ConnectionStatus>`](https://nuxt-backend.dev/docs/build/data/read-write#tell-people-the-connection-dropped): an empty live region while the connection is up.

Inside a layout with [`<AppShell>`](https://nuxt-backend.dev/docs/build/ui/app-shell), a page is a `<div>` with its `h1`: the shell owns the header, the notices, the consent dialog, the connection status and the one main landmark, so nothing shows twice. A copy of a page that a router module mounts again, such as `/fr/profile` under `@nuxtjs/i18n`, carries the same route rules as the page it copies.

## Move a page

Give its key a path in the [`pages` module option](https://nuxt-backend.dev/docs/reference/configuration/module-options). Each path is declared once, there: the auth route, the guards and the invitation emails read it.

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['nuxt-backend'],
  backend: {
    pages: {
      pricing: '/plans',     // the packaged pricing page, at /plans
      settings: '/account',  // the packaged settings page, at /account
    },
  },
})
```

The path you give `login` is also where every page guard sends a signed-out visitor. To change part of a page, [swap a part](https://nuxt-backend.dev/docs/build/ui/customize/parts); to replace it, put an app page at its path ([Replace a page](https://nuxt-backend.dev/docs/build/ui/customize/parts#replace-a-page)).

## Turn a page off

`false` mounts nothing at that key's path:

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  modules: ['nuxt-backend'],
  backend: {
    pages: {
      pricing: false, // pricing lives on the marketing site
      profile: false, // the profile lives on the app's own settings page
    },
  },
})
```

Links the package renders to a page that is off (`useBackendPagePath('pricing')`) read `null`, and the packaged components hide them. `login: false` keeps the path guards redirect to, so serve your own sign-in page there.

## Search engines

The private pages redirect a signed-out visitor to sign-in, so the module keeps them out of search indexes, sitemaps and caches (see [Caches](#caches)). It adds a route rule at each one's path, and the public pages get `prerender: false` alone, since no page is prerendered:

```ts
routeRules: {
  '/settings': {
    prerender: false,
    robots: false,
    sitemap: false,
    cache: false,
    swr: false,
    isr: false,
    headers: { 'cache-control': 'private, no-store' },
  },
  // …the same for /profile, /security, /accept-invitation, /welcome and /admin
  '/account/keep': { prerender: false, robots: false, sitemap: false, cache: false, swr: false, isr: false, headers: { 'cache-control': 'private, no-store' } },
  // Public, and each reads a token from its link: out of indexes, not out of caches.
  '/login': { prerender: false, robots: false },
  '/invite': { prerender: false, robots: false },
  '/waitlist': { prerender: false, robots: false },
  '/pricing': { prerender: false },
}
```

[`@nuxtjs/robots`](https://nuxtseo.com/docs/robots/getting-started/introduction) answers `robots: false` with a `noindex, nofollow` header and meta tag, and [`@nuxtjs/sitemap`](https://nuxtseo.com/docs/sitemap/getting-started/introduction) leaves the URL out; both come with `@nuxtjs/seo`. Without those modules the rules do nothing, so each private page also says it itself: every page `definePageMeta({ auth })` guards, the package's and yours, and everything below one (the admin console's tabs) carries `<meta name="robots" content="noindex, nofollow">`. `/login`, the access-link page and the unsubscribe page, which read a code or a signed token from their address, get `noindex` too. `/pricing` stays indexable.

A page of yours at one of these paths replaces the packaged page, a page file with a parameter included: `app/pages/r/[code].vue`, which Nuxt registers as `/r/:code()`, replaces the referral page at `/r/:code`, and so does a file that names its parameter otherwise, though a page built on `useReferralInvite()` keeps the name `code`, which it reads (`route.params.code`). A catch-all (`[...slug].vue`) or an optional parameter (`[[code]].vue`) there does not: it answers more addresses, so both pages stay. The router sends `/r/<code>` to the referral page, and the addresses only yours answers, such as `/r`, to yours. A public page's rules (`/login`, `/invite`, `/account/keep`) stay with the path, since the link that opens it still carries its token. A private page's rules follow your page instead:

- **With auth rules** (`definePageMeta({ auth: true })`, or a parent's), your page keeps every private rule.
- **Without them,** your page is public, as a shop at `/gifts` is. It loses `robots: false` and `sitemap: false`, and what `@nuxtjs/robots` made of the first: the `X-Robots-Tag: noindex, nofollow` header, and with its `disallowNonIndexableRoutes` on, the path's `Disallow` line in robots.txt (a line you list in `robots.disallow` yourself stays). So search engines may index it. It keeps the caching rules, since its render for a signed-in visitor still carries the session's token. `nuxt dev` names the path in a warning, in case the page was meant to ask for a sign-in. With `@nuxtjs/i18n` on a strategy that prefixes paths, `@nuxtjs/robots` writes that `Disallow` line once per locale, and the package takes off only the line for the path as it is: give the path `robots: true` in `routeRules`, and no line is written for it at all.

The guard does not follow the path either: a page of yours in place of a private one declares `definePageMeta({ auth: true })`. With `@nuxtjs/robots` installed the module leaves the meta tag to it, so the rule for a path decides. Without it, a page of yours that should be indexed says so after the fact with `useSeoMeta({ robots: 'index, follow' })`, which runs after the tag and wins. A rule you set for the same path wins key by key: `routeRules: { '/security': { robots: true } }` indexes that page again.

## Caches

A signed-in render carries the session's token: the server renders the page with it, and it rides in the page's payload to the browser. So the private pages turn off each cache a route rule can turn on (`cache`, `swr`, and the hosting platform's `isr`) and answer `cache-control: private, no-store`.

That holds at each page's exact path. Route rules match paths case-insensitively since Nuxt 4.6.2, as the router matches pages, unless your app sets routing to case-sensitive (checked on 2026-10-25). A localized copy of a page (`/fr/settings`) is another path, which the module covers with the same rules. When a wildcard `swr`, `isr` or `cache` rule covers a private page, the module warns at startup.

Your own pages with `auth` rules get the same rules at their paths, and the same warning: [Protect pages and routes](https://nuxt-backend.dev/docs/build/auth/access/pages#where-the-rules-are-checked).

Scope cache rules to the public pages they are meant for, never the whole app:

```ts [nuxt.config.ts]
export default defineNuxtConfig({
  routeRules: {
    '/': { swr: 3600 },
    '/blog/**': { swr: 3600 },
  },
})
```

## Arriving in 0.2.0

These pages join the set with the features they belong to. Each mounts like the others, inside the same frame, with a private or a public page's route rules, and each key takes a path or `false`.

<table>
<thead>
  <tr>
    <th>
      Key
    </th>
    
    <th>
      Route
    </th>
    
    <th>
      What it is
    </th>
    
    <th>
      Who can open it
    </th>
    
    <th>
      Unit
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        report
      </code>
    </td>
    
    <td>
      <code>
        /report
      </code>
    </td>
    
    <td>
      The public notice form for illegal content and intimate-image removal (<a href="https://nuxt-backend.dev/docs/ship/compliance/moderation">
        Moderate user content
      </a>
      
      )
    </td>
    
    <td>
      everyone
    </td>
    
    <td>
      SAFETY
    </td>
  </tr>
</tbody>
</table>

The legal pages above are drafts marked "not legal advice": have them reviewed, or turn them off and serve your own. The sign-in page gains steps of its own: an invite code in an early-access or invite-only phase, and the waitlist for a new address. The admin console gains Access, Waitlist, Queue, Reports, Analytics, Growth and Costs tabs, and tabs of your own through `adminTab` in page meta ([Run the admin console](https://nuxt-backend.dev/docs/build/auth/admin)).

## Related

- [Swap a part](https://nuxt-backend.dev/docs/build/ui/customize/parts): change part of a page, or put your own at its path.
- [Protect pages and routes](https://nuxt-backend.dev/docs/build/auth/access/pages): the guards and route rules for your own pages.
- [Build the app shell](https://nuxt-backend.dev/docs/build/ui/app-shell): the header around your pages and the packaged ones.
- [Module options](https://nuxt-backend.dev/docs/reference/configuration/module-options): the `pages` and `css` options.


## Sitemap

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