Vercel

Deploy to Vercel with zero configuration.

Overview

Vercel has first-class Nuxt support. A vercel.json is included in the deploy/ directory as a reference.

Quick Deploy

  1. Push your project to GitHub
  2. Import the repository on vercel.com
  3. Vercel auto-detects Nuxt and configures the build
  4. Set environment variables in the Vercel dashboard
  5. Deploy

That's it. Vercel handles the Nuxt build preset automatically.

Environment Variables

Set these in Vercel Dashboard > Project Settings > Environment Variables:

VariableDescription
NUXT_PUBLIC_SITE_URLYour Vercel domain (e.g., https://myapp.vercel.app)
NUXT_WEBHOOK_URLWebhook destination URL(s)
NUXT_PUBLIC_SCRIPTS_UMAMI_ANALYTICS_WEBSITE_IDUmami website ID
NUXT_PUBLIC_SCRIPTS_UMAMI_ANALYTICS_SCRIPT_INPUT_SRCUmami script URL

vercel.json Reference

deploy/vercel.website.json
{
  "buildCommand": "nuxt build",
  "outputDirectory": ".output",
  "framework": "nuxtjs"
}

This is optional — Vercel detects Nuxt projects automatically. Use it if you need custom build settings.

Custom Domain

After the first deploy:

  1. Go to Project Settings > Domains
  2. Add your custom domain
  3. Update NUXT_PUBLIC_SITE_URL to match

See the Vercel custom domains documentation for DNS configuration.

Further Reading