Deployment

Learn how to deploy your Nuxt Starter Kit application.

This starter kit heavily bound to NuxtHub, which is a hosting platform for Nuxt applications.

To deploy your application to NuxtHub, you should follow the official NuxtHub documentation.

Follow the Going to production guide before deploying your application to production.

Environment Variables

The most important part is to define your environment variables in the NuxtHub Admin dashboard.

GitHub Action

The NuxtHub GitHub Action builds the Nuxt application using build-time environment variables and secrets specified within NuxtHub Admin.

The NuxtHub GitHub Action securely pulls environment variables and secrets from NuxtHub Admin, and builds your Nuxt application. On top of this, you can scope environment variables to be build or runtime only, allowing you to further protect secrets.

Deploy via CLI

If you want to deploy your application via CLI, you can use the following command:

pnpm run deploy

Usually, you don't need to run this command manually, as the GitHub Action will handle the deployment for you.