From Nuxt.js Official Website
From Nuxt.js Official Website

What is Nuxt.js?

Nuxt.js is a lightweight application framework based on Vue.js. It can be used to create server-side rendering (SSR) applications. It can also act as a static site generator (SSG) to generate static applications with features such as elegant code structure layering and hot loading

21YunBox provides a very simple Nuxt.js deployment method. You can deploy with 21YunBox in a static site environment or a Node environment.

How to Deploy Nuxt.js?

  1. Signup on 21YunBox
  2. Fork Nuxt.js example on Gitee
  3. Create a Cloud Service on 21YunBox, and allow 21YunBox to access your code base
  4. Use the following values during creation
Environment Static Site
Build command yarn && yarn generate
Release Directory ./dist

If you’d like a step by step example, please refer to the video below:

How to deploy Nuxt.js file to the server?