---
title: "Service map"
description: "Every capability against the service that powers it: required or optional, free tiers, env names, the order to set them up in, and the recommended settings."
canonical_url: "https://nuxt-backend.dev/docs/services"
---
# Service map

> Every capability against the service that powers it: required or optional, free tiers, env names, the order to set them up in, and the recommended settings.

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

nuxt-backend composes a few services: Convex runs the backend, and each other service powers one or more [capabilities](https://nuxt-backend.dev/docs/start/concepts/capabilities). You need Convex to start. Everything else can wait until the feature that needs it, and each one has a free tier or a sandbox for development.

## The map

Free tiers checked on 2026-10-25. Each service page has the full costs and limits.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      Service
    </th>
    
    <th>
      Needed
    </th>
    
    <th>
      Free to start
    </th>
    
    <th>
      Env names
    </th>
    
    <th>
      Page
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        data
      </code>
      
      , <code>
        jobs
      </code>
    </td>
    
    <td>
      Convex
    </td>
    
    <td>
      Always
    </td>
    
    <td>
      Free plan: 1M function calls a month
    </td>
    
    <td>
      <code>
        CONVEX_DEPLOYMENT
      </code>
      
      , <code>
        NUXT_PUBLIC_BACKEND_URL
      </code>
      
      , <code>
        CONVEX_DEPLOY_KEY
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/convex">
        Convex
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        auth
      </code>
    </td>
    
    <td>
      Better Auth, inside your Convex deployment
    </td>
    
    <td>
      Always
    </td>
    
    <td>
      No account
    </td>
    
    <td>
      <code>
        AUTH_SECRET
      </code>
      
      , <code>
        SITE_URL
      </code>
      
      , <code>
        BACKEND_ENVIRONMENT
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/convex#keys-and-environment">
        Convex
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        email
      </code>
    </td>
    
    <td>
      Resend
    </td>
    
    <td>
      In production, for sign-in codes
    </td>
    
    <td>
      3,000 emails a month, 100 a day
    </td>
    
    <td>
      <code>
        EMAIL_API_KEY
      </code>
      
      , <code>
        EMAIL_FROM
      </code>
      
      , <code>
        EMAIL_WEBHOOK_SECRET
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/resend">
        Resend
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        billing
      </code>
      
      , <code>
        analytics
      </code>
    </td>
    
    <td>
      Polar
    </td>
    
    <td>
      To take payments
    </td>
    
    <td>
      The sandbox is free; production takes 5% + 50¢ per sale
    </td>
    
    <td>
      <code>
        BILLING_ACCESS_TOKEN
      </code>
      
      , <code>
        BILLING_WEBHOOK_SECRET
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/polar">
        Polar
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        ai
      </code>
    </td>
    
    <td>
      The Convex AI Gateway, the Vercel AI Gateway, or both in order (<code>
        setupAi({ gateway })
      </code>
      
      )
    </td>
    
    <td>
      For AI features
    </td>
    
    <td>
      None on Convex's route: paid plans only
    </td>
    
    <td>
      <code>
        AI_GATEWAY_API_KEY
      </code>
      
      , only for Vercel's route
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/ai-gateway">
        AI gateway
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        hosting
      </code>
    </td>
    
    <td>
      Vercel, or any host that runs Nuxt
    </td>
    
    <td>
      To go live
    </td>
    
    <td>
      Hobby, for non-commercial apps
    </td>
    
    <td>
      <code>
        CONVEX_DEPLOY_KEY
      </code>
      
       on the host
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/vercel">
        Vercel
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        protection
      </code>
    </td>
    
    <td>
      Vercel BotID, or Cloudflare Turnstile
    </td>
    
    <td>
      Before launch
    </td>
    
    <td>
      Free on both
    </td>
    
    <td>
      <code>
        PROTECTION_PROOF_SECRET
      </code>
      
      , or the two challenge keys
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/bot-protection">
        Bot protection
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        monitoring
      </code>
    </td>
    
    <td>
      Sentry
    </td>
    
    <td>
      Before launch
    </td>
    
    <td>
      5,000 errors a month, one person
    </td>
    
    <td>
      <code>
        MONITORING_DSN
      </code>
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/services/sentry">
        Sentry
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        notifications
      </code>
    </td>
    
    <td>
      The browsers' push services
    </td>
    
    <td>
      For web push
    </td>
    
    <td>
      No account
    </td>
    
    <td>
      <code>
        PUSH_PUBLIC_KEY
      </code>
      
      , <code>
        PUSH_PRIVATE_KEY
      </code>
      
      , generated
    </td>
    
    <td>
      <a href="#notifications">
        Notifications
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        flags
      </code>
    </td>
    
    <td>
      Convex
    </td>
    
    <td>
      Always there
    </td>
    
    <td>
      No account
    </td>
    
    <td>
      None
    </td>
    
    <td>
      <a href="https://nuxt-backend.dev/docs/ship/operate/flags">
        Roll out features
      </a>
    </td>
  </tr>
</tbody>
</table>

Brands stop at this tab: your code and env use the package's neutral names, so a page under Build never needs to know which service sends an email.

## Setup order

1. **Convex,** first. `npx nuxt-backend dev` creates the dev deployment, and sign-in works at once: codes print in your terminal.
2. **Resend,** when you want codes in a real inbox or start sending your own email. Add the sending domain early: DNS can take a day.
3. **Polar,** when you add plans or credits. Work in its sandbox, and start the production account review a week or two before launch. [Stripe, Dodo or Creem](https://nuxt-backend.dev/docs/services/merchants) can take its place, with fewer features.
4. **An AI gateway,** when you add an AI feature. Set its spend cap first.
5. **Vercel,** or your own host, when you deploy. Pick the function region next to your Convex region.
6. **Bot protection and Sentry,** before launch. `doctor --prod` warns until both are in place.

Each service has a test mode or a sandbox, and `BACKEND_ENVIRONMENT` decides which side email and billing run on: `development`, `preview` and `sandbox` keep both on their test modes, `production` takes both live at once ([Environments and deployments](https://nuxt-backend.dev/docs/start/concepts/environments#backend_environment)).

<card-group>
<card icon="i-simple-icons-convex" title="Convex" to="https://nuxt-backend.dev/docs/services/convex">

Set up the Convex deployment the backend runs on: the account, the region, dev and production deployments, and the keys the app and the CLI read.

</card>

<card icon="i-lucide-credit-card" title="Polar" to="https://nuxt-backend.dev/docs/services/polar">

Set up Polar, the billing provider and merchant of record: the sandbox organization, the access token, the webhook, and the move to production.

</card>

<card icon="i-lucide-store" title="Stripe, Dodo and Creem" to="https://nuxt-backend.dev/docs/services/merchants">

Sell through Stripe Managed Payments, Dodo Payments or Creem instead of Polar: what each merchant of record offers, the keys, the product ids setupBilling maps, how credits work, the webhook, what stays on Polar, and the account review.

</card>

<card icon="i-lucide-mail" title="Resend" to="https://nuxt-backend.dev/docs/services/resend">

Set up Resend for email: the account, the API key, the sending domain and its DNS records, the region, sending subdomains and the webhook.

</card>

<card icon="i-lucide-sparkles" title="AI gateway" to="https://nuxt-backend.dev/docs/services/ai-gateway">

Set up the AI gateway the AI features call models through: the Convex AI Gateway on a paid plan or a Vercel AI Gateway key, the spend cap, EU inference, and what development costs.

</card>

<card icon="i-simple-icons-vercel" title="Vercel" to="https://nuxt-backend.dev/docs/services/vercel">

Set up Vercel to host the Nuxt app: the account, the project, its environments, preview deployments, the function region and the env it needs from the backend.

</card>

<card icon="i-lucide-activity" title="Sentry" to="https://nuxt-backend.dev/docs/services/sentry">

Set up Sentry for errors and uptime: the account and its data region, the project, the DSN for the app and the deployment, source maps, cron monitors and the health monitor.

</card>

<card icon="i-lucide-shield" title="Bot protection" to="https://nuxt-backend.dev/docs/services/bot-protection">

Set up the bot check that guards sign-in and sign-up: Vercel BotID on Vercel, or a Cloudflare Turnstile challenge on any other host, with its keys.

</card>
</card-group>

## Provider setup

Each service in development and in production, side by side, with the `doctor` findings that check it. `npx nuxt-backend doctor --only <capability>` runs one capability's checks, and [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics) has the fix for every id. Set a deployment's values with `npx convex env set [--prod] NAME`, which asks for the value, or forward them from `.env.local` with [`env push`](https://nuxt-backend.dev/docs/reference/cli#env-push).

<table>
<thead>
  <tr>
    <th>
      Service
    </th>
    
    <th>
      Development
    </th>
    
    <th>
      Production
    </th>
    
    <th>
      Checked by <code>
        doctor --only
      </code>
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/convex#go-to-production">
        Convex
      </a>
    </td>
    
    <td>
      A dev deployment per developer, made by <code>
        npx nuxt-backend dev
      </code>
    </td>
    
    <td>
      The production deployment, its deploy key on the host, its own <code>
        AUTH_SECRET
      </code>
    </td>
    
    <td>
      <code>
        data
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/polar#go-to-production">
        Polar
      </a>
    </td>
    
    <td>
      A sandbox organization's token; <code>
        billing sync
      </code>
    </td>
    
    <td>
      A production organization that passed review; <code>
        billing sync --env production
      </code>
    </td>
    
    <td>
      <code>
        billing
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/resend#go-to-production">
        Resend
      </a>
    </td>
    
    <td>
      A development team's key; test addresses only
    </td>
    
    <td>
      A production team's key, a verified domain, <code>
        email sync --prod
      </code>
    </td>
    
    <td>
      <code>
        email
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/ai-gateway#go-to-production">
        AI gateway
      </a>
    </td>
    
    <td>
      The same models, at their real cost
    </td>
    
    <td>
      Production's own spend cap, and key if you use one
    </td>
    
    <td>
      <code>
        ai
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/vercel#go-to-production">
        Vercel
      </a>
    </td>
    
    <td>
      <code>
        npx nuxt-backend dev
      </code>
      
       on your machine
    </td>
    
    <td>
      The project's production environment, on Pro
    </td>
    
    <td>
      <code>
        hosting
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/bot-protection#go-to-production">
        Bot protection
      </a>
    </td>
    
    <td>
      The dev server answers human
    </td>
    
    <td>
      Production's own proof secret, or the widget's keys
    </td>
    
    <td>
      <code>
        protection
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/services/sentry#go-to-production">
        Sentry
      </a>
    </td>
    
    <td>
      A local error log in DevTools
    </td>
    
    <td>
      <code>
        MONITORING_DSN
      </code>
      
       on the deployment and the host
    </td>
    
    <td>
      <code>
        monitoring
      </code>
    </td>
  </tr>
</tbody>
</table>

Give each stage its own account or team where the service allows it: production's webhooks then never receive test events, and a leaked development key never reaches production.

### Notifications

Web push needs no account: the browsers' push services deliver it, signed with a key pair of the deployment's own. `npx nuxt-backend env push` generates `PUSH_PUBLIC_KEY` and `PUSH_PRIVATE_KEY` for the dev deployment, and `env push --prod` a pair of production's own, never copied from `.env.local` ([Send web push notifications](https://nuxt-backend.dev/docs/build/email/notifications/web-push)).

[Deploy in one command](https://nuxt-backend.dev/docs/ship/deploy/one-command) runs the production column of this table in one command, and reports each step under its capability.

## Recommended settings

`doctor --fix` applies the billing settings its findings recommend, after you confirm each one, and keeps the webhook endpoints of Polar and Resend healthy. Your catalog relies on settings that live in your Polar organization, not in your code: whether one customer can start the same trial twice, whether customers hear before a trial ends, whether the webhook endpoint is still enabled. `doctor` reads them and warns where one works against the app, and `doctor --fix` changes the ones it may through Polar's API.

### Before you start

- Billing set up against Polar's sandbox or production, with a token that may change the organization's settings ([Polar](https://nuxt-backend.dev/docs/services/polar#keys-and-environment)).
- A run of `npx nuxt-backend doctor --only billing` to see what it finds.

### What doctor reads

The billing findings read the organization's settings and warn, never fail. Each says what to change:

<table>
<thead>
  <tr>
    <th>
      Finding
    </th>
    
    <th>
      Polar setting
    </th>
    
    <th>
      Recommended
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-trial-abuse">
        <code>
          billing-trial-abuse
        </code>
      </a>
    </td>
    
    <td>
      <strong>
        Settings
      </strong>
      
      , <strong>
        Subscriptions
      </strong>
      
      , prevent trial abuse
    </td>
    
    <td>
      On, when a plan has a trial
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-portal">
        <code>
          billing-portal
        </code>
      </a>
    </td>
    
    <td>
      Customer portal, plan changes
    </td>
    
    <td>
      On
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-proration">
        <code>
          billing-proration
        </code>
      </a>
    </td>
    
    <td>
      Default proration: invoice, prorate or next period
    </td>
    
    <td>
      The one you mean: a choice, not a mistake
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-benefit-grace">
        <code>
          billing-benefit-grace
        </code>
      </a>
    </td>
    
    <td>
      Benefit revocation after a failed payment: at once, or after 2 to 21 days
    </td>
    
    <td>
      At once, so the package's past-due notice and the benefits agree
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-multiple-subscriptions">
        <code>
          billing-multiple-subscriptions
        </code>
      </a>
    </td>
    
    <td>
      Allow multiple subscriptions per customer
    </td>
    
    <td>
      Off
    </td>
  </tr>
  
  <tr>
    <td>
      <a href="https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-promotion-portal">
        <code>
          billing-promotion-portal
        </code>
      </a>
    </td>
    
    <td>
      A forever discount on some plans, while the portal changes plans
    </td>
    
    <td>
      Fix the discount's scope
    </td>
  </tr>
</tbody>
</table>

Polar's renewal reminders go out only for billing cycles of six months or more, and trial reminders three days before a trial ends ([Subscriptions](https://polar.sh/docs/features/subscriptions/introduction)).

### Let doctor fix them

```bash
npx nuxt-backend doctor --fix          # the dev deployment's provider accounts
npx nuxt-backend doctor --prod --fix   # production's
```

It names each change it would make, and applies one only once you confirm it at a terminal. Like every command, it runs unattended when told to: `--yes` confirms every change for a script or CI, and without a terminal or `--yes` each change is listed and left as it is. It needs the `BILLING_ACCESS_TOKEN` of the organization visible where it runs (the process env alone under `--prod`):

```bash
npx nuxt-backend doctor --fix --yes    # unattended
```

The same goes for the email sync `doctor --fix` runs: it shows the sync as a dry run first, and a CI run without `--yes` prints what it would change at Resend and runs none of it.

The changes it may make:

- **Trial abuse prevention** on, when a plan has a trial, so one customer cannot start the same trial again.
- **Trial reminders** on, so a customer hears from Polar before a trial turns into a charge.
- **Polar's customer emails** (receipts, renewals, payment failures, cancellations) back on, when one was turned off. It never turns one off: the package sends none of them ([Customer emails and notifications](https://nuxt-backend.dev/docs/build/billing/events/customer-emails)).

Everything else stays yours. It never touches seat settings, and the findings that report a choice rather than a mistake, such as proration, keep warning and say what each choice does.

### Healthy webhook endpoints

Two more checks, for Polar and for Resend alike:

- **The endpoint is enabled** ([`billing-webhook-enabled`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-webhook-enabled), [`email-webhook-enabled`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#email-webhook-enabled)). Polar disables an endpoint after 10 failed deliveries in a row, and Resend one that keeps failing. `--fix` turns it back on only once its route on the deployment answers the probe, so an endpoint is never re-enabled into the same failure. It then points you to [replay](https://nuxt-backend.dev/docs/ship/operate/replay) what the provider held back while it was off.
- **The endpoint hears every event the package handles** ([`billing-webhook-events`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing-webhook-events), [`email-webhook-events`](https://nuxt-backend.dev/docs/reference/cli/diagnostics#email-webhook-events)). One subscribed to fewer is reported with the events it misses, and `--fix` subscribes it to them after you confirm (for Resend, `email sync` does it).

Each is a finding of its own, under the `billing` and `email` capabilities, with its entry on [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics); the ids land with the feature. The same run also warns when a catalog product carries a Polar checkout link of its own, which would sell it outside the package's checkout.

### Re-sync every entitlement

The backend caches each billing entity's plans, features and credit balances, and keeps the cache fresh from Polar's events. After a [restore](https://nuxt-backend.dev/docs/ship/operate/backup), an import or a long webhook outage, a bulk re-sync reads every entity's state from Polar again, in batches, so nobody waits for their next event to see what they paid for. Backup, restore and import run it, and you can run it yourself; the exact command lands with the feature.

### Check it works

Run `npx nuxt-backend doctor --only billing` again: the findings it fixed pass.

### Related

- [Polar](https://nuxt-backend.dev/docs/services/polar): the account, the token and the webhook.
- [Diagnostics](https://nuxt-backend.dev/docs/reference/cli/diagnostics#billing): every billing finding, what it checks and its fix.
- [Set up billing](https://nuxt-backend.dev/docs/build/billing/setup#go-live): the production checklist these settings belong to.
- [Replay a webhook delivery](https://nuxt-backend.dev/docs/ship/operate/replay): send what an endpoint missed again.
- [Back up, restore and roll back](https://nuxt-backend.dev/docs/ship/operate/backup): where the bulk re-sync fits after a restore.


## Sitemap

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