This topic describes how to deploy a Nuxt.js application to Function Compute. Function Compute provides a method different from traditional deployment methods. You can deploy a traditional Nuxt.js application to Function Compute and use the application for production without performing steps such as purchasing a machine. Your Nuxt.js application can use the auto-scaling, pay-as-you-go, and O&M-free features of Function Compute.
Background information
Nuxt.js is a general-purpose application framework based on Vue.js. It abstracts away the client-server architecture and focuses on user interface rendering for applications. Nuxt.js has preset all the configurations needed to develop server-side rendered (SSR) Vue.js applications. It provides many useful features for the client-server application architecture, such as asynchronous data loading, middleware support, and layout support.
Step 1: Prepare the environment
You do not need to install Docker but only Funcraft. The easiest way to install Funcraft is to download the executable binary files.
- Install Funcraft. For more information, see Install Funcraft.
- Run the
fun --version
command to check whether the installation is successful. - Configure Funcraft. For more information, see Configure Funcraft.