Vercel

Nuxt on Vercel supports server-rendered pages and API routes.

Vercel - 图1 Support for serverless build

Vercel - 图2 Auto-detected when deploying

Vercel - 图3 No configuration required

CLI

  1. Install the Vercel CLI.
  2. Vercel will detect that you are using Nuxt and will enable the correct settings for your deployment.
  3. Your application is deployed! (e.g. nuxt.vercel.app)
  1. npm i -g vercel
  2. npx nuxi init -t v3-vercel
  3. vercel

Git

  1. Push your code to your git repository (GitHub, GitLab, Bitbucket).
  2. Import your project into Vercel.
  3. Vercel will detect that you are using Nuxt and will enable the correct settings for your deployment.
  4. Your application is deployed! (e.g. nuxt.vercel.app)

After your project has been imported and deployed, all subsequent pushes to branches will generate Preview Deployments, and all changes made to the Production Branch (commonly “main”) will result in a Production Deployment.

Learn more about Vercel’s Git Integration.

More information

See more information on the node preset for full details.

Demo

A live demo is available at https://nuxt.vercel.app.