---
title: "Start from the deploy template"
description: "A new app deployed to Vercel from its first commit: the starter as a Vercel template, with Convex added through the Vercel Marketplace, running on the providers' test modes until `nuxt-backend deploy` switches it to production."
canonical_url: "https://nuxt-backend.dev/docs/ship/deploy/template"
---
# Start from the deploy template

> A new app deployed to Vercel from its first commit: the starter as a Vercel template, with Convex added through the Vercel Marketplace, running on the providers' test modes until `nuxt-backend deploy` switches it to production.

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.

The deploy template puts a new app on Vercel before you clone it. It is the [starter](https://nuxt-backend.dev/docs/start/templates), deployed from the repository's `templates/starter` folder. One deploy creates the Git repository, the Vercel project and the Convex project together, and the app is live at its own URL. Start here when you want a public URL from day one. Start from the starter when you want to build on your machine first.

[Deploy with Vercel](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fqruto%2Fnuxt-backend%2Ftree%2Fmain%2Ftemplates%2Fstarter&project-name=nuxt-backend-app&repository-name=nuxt-backend-app&products=%5B%7B%22type%22%3A%22integration%22%2C%22integrationSlug%22%3A%22convex%22%2C%22productSlug%22%3A%22convex%22%2C%22protocol%22%3A%22storage%22%7D%5D)

## What the deploy does

1. **The repository.** Vercel copies the starter into your Git account and creates a project for it.
2. **The backend.** The deploy link adds Convex through the Vercel Marketplace. The integration creates a Convex project, in a Convex team of its own, and gives the Vercel project its deploy key. You sign in to Convex through Vercel, and copy no key by hand.
3. **The first build.** The starter's `vercel.json` sets the build command to [`npx nuxt-backend deploy --build`](https://nuxt-backend.dev/docs/reference/cli#deploy). It puts what the first push needs on the new production deployment, a generated `AUTH_SECRET` and the project's production URL as `SITE_URL`, then ships both halves as [Deploy to production](https://nuxt-backend.dev/docs/ship/deploy#one-command-on-any-host) describes: the backend first, then the app against it. Once the backend is up, it runs the package's data migrations on production, so a new version needs no `upgrade --prod --yes` after its build. A migration that fails fails the build; when production does not answer them, the build warns and passes, and `upgrade --prod --yes` finishes them.

The first build leaves `BACKEND_ENVIRONMENT` unset, so every provider stays in its test mode: every capability that needs no account works, and the rest wait for their keys.

<table>
<thead>
  <tr>
    <th>
      Capability
    </th>
    
    <th>
      After the first deploy
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Auth
    </td>
    
    <td>
      Sign in with a test address, such as <code>
        delivered+you@resend.dev
      </code>
      
      , once an email key is set, and read the code in Resend's list of sent emails. The <a href="https://nuxt-backend.dev/docs/develop/dev-inbox">
        dev inbox
      </a>
      
       shows it in the app only on a demo: after <code>
        npx nuxt-backend deploy --sandbox
      </code>
      
      , with <code>
        EMAIL_DEV_INBOX=1
      </code>
      
       set on the deployment
    </td>
  </tr>
  
  <tr>
    <td>
      Billing
    </td>
    
    <td>
      Polar's sandbox, once you add a sandbox token
    </td>
  </tr>
  
  <tr>
    <td>
      AI
    </td>
    
    <td>
      The Convex AI Gateway on a paid Convex plan, or <code>
        AI_GATEWAY_API_KEY
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Data, jobs, flags
    </td>
    
    <td>
      Running, on the new deployment
    </td>
  </tr>
</tbody>
</table>

## Then make it production

Clone the repository, install, sign in to Convex (`npx convex login`) and Vercel (`npx vercel link`), and run [one-command production](https://nuxt-backend.dev/docs/ship/deploy/one-command) from it:

```bash
npx nuxt-backend deploy
```

It links the production deployment the integration created, sets `BACKEND_ENVIRONMENT=production`, pushes production's env, syncs the catalog, registers the webhooks and writes the app's env into the same Vercel project. It ends with `doctor --prod`. Then walk [Prepare for launch](https://nuxt-backend.dev/docs/ship/checklist) for what no command can see. To keep the app a public demo instead, run `npx nuxt-backend deploy --sandbox` ([Deploy a demo or staging app](https://nuxt-backend.dev/docs/ship/deploy/staging)).

## Related

- [Templates](https://nuxt-backend.dev/docs/start/templates): the starter, and what an app created from it holds.
- [Deploy in one command](https://nuxt-backend.dev/docs/ship/deploy/one-command): what `nuxt-backend deploy` does, step by step.
- [Deploy a demo or staging app](https://nuxt-backend.dev/docs/ship/deploy/staging): what `BACKEND_ENVIRONMENT=sandbox` turns on.
- [Deploy to Vercel](https://nuxt-backend.dev/docs/ship/deploy/vercel): analytics, edge rate limits, error reports and the AI Gateway on Vercel.


## Sitemap

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