Deploy
NuxtHub
Deploy Nuxt applications globally on your Cloudflare account with zero configuration.
Zero Configuration ✨
Integration with NuxtHub is possible with zero configuration, learn more.
Integration with NuxtHub is possible with zero configuration, learn more.
Introduction
NuxtHub is a deployment and administration platform for Nuxt, powered by Cloudflare.
The main difference with the Cloudflare deployment is that NuxtHub provides a zero-configuration deployment experience (provisioning, deployment, and administration).
It also provides a powerful admin interface to manage your Nuxt projects (database, blob, KV, ...) as well as remote storage.
Read more on hub.nuxt.com.
NuxtHub CLI
You can deploy your local project with a single command:
Terminal
npx nuxthub deploy
The command will:
- Ensure you are logged in on admin.hub.nuxt.com
- Link your local project with a NuxtHub project or help you create a new one
- Build your Nuxt project with the correct preset
- Deploy it to your Cloudflare account with all the necessary resources
- Provide you with a URL to access your project
See an example in video:
You can also install the NuxtHub CLI globally with:
npm i -g nuxthub
.If you do your first deployment with the NuxtHub CLI, you won't be able to attach your GitHub/GitLab repository later on due to a Cloudflare limitation.
Deploy using Git
- Push your code to your git repository (GitHub or GitLab)
- Click on
New Project
thenImport a Git repository
- Select your repository and click on
Import repository
- NuxtHub will configure your project on Cloudflare Pages and deploy it
- Your application is deployed with a
.nuxt.dev
domain
After your project has been imported and deployed, all subsequent pushes to branches will generate preview deployments and all changes made to the production branch (commonly “main”) will result in a production deployment.
Templates
See the whole list of templates on https://hub.nuxt.com/templates