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?
- Signup on 21YunBox
- Fork Nuxt.js example on Gitee
- Create a Cloud Service on 21YunBox, and allow 21YunBox to access your code base
- 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: