deploy.ccSelf-hosting deploy handbook
deploy.cc / Guides / Nuxt

Nuxt deploy guide

Nuxt builds via Nitro: a Node.js server, a static site, or a platform preset.

Build
npx nuxi build / npx nuxi generate
Output
.output/(服务端)/ .output/public(静态)
Official docs
Nuxt Deployment · Nitro deploy presets

How to deploy

  1. Node.js: nuxi build, then node .output/server/index.mjs (port 3000).
  2. Static: nuxi generate and upload .output/public.
  3. Platforms: often auto-detected, or set NITRO_PRESET (e.g. cloudflare_pages).

Per platform

PlatformNotes
Cloudflare / Vercel / NetlifyNitro has presets for each.
VPSnode .output/server/index.mjs + PM2/systemd + Nginx.

Notes

Generate a config