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
- Node.js: nuxi build, then node .output/server/index.mjs (port 3000).
- Static: nuxi generate and upload .output/public.
- Platforms: often auto-detected, or set NITRO_PRESET (e.g. cloudflare_pages).
Per platform
| Platform | Notes |
|---|---|
| Cloudflare / Vercel / Netlify | Nitro has presets for each. |
| VPS | node .output/server/index.mjs + PM2/systemd + Nginx. |
Notes
- Check preset names in the Nitro docs.