How to Deploy NuxtJS Apps in China? (A Step-by-Step Guide)
How to Deploy NuxtJS Apps in China? (A Step-by-Step Guide)

TLDR; This Nuxt.js China tutorial provides you with a step-by-step solution to deploy and host your Nuxt.js application in China.


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 for China. You can deploy Nuxt.js to China with 21YunBox in a static site environment or a Node environment.


How to Deploy Nuxt.js in China?

  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
Runtime Static Site
Build command yarn && yarn generate
Publish 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 in China?



Ready to make your app work in China?

Get Started Questions? Talk to an expert.

Ready to try 21YunBox?

Get Started