Skip to content

Commit

Permalink
docs: invert cloudflare pages ci and cli
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Apr 30, 2024
1 parent 57022da commit 456a8fb
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions docs/content/docs/1.getting-started/3.deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,25 @@ The [NuxtHub Admin](https://admin.hub.nuxt.com) is made to simplify your experie
2. Connect your Cloudflare account by clicking on `Create a new token with required permissions` and follow the instructions
3. You are now ready to deploy your Nuxt project to your Cloudflare account!

### Cloudflare Pages CI

It is possible to use [Cloudflare Pages CI](https://pages.cloudflare.com) to deploy your project by connecting your GitHub or GitLab account. Once your repository is connected, each commit will trigger a new deployment.

1. Open the [NuxtHub Admin](https://admin.hub.nuxt.com)
2. Click on `New Project` then `Import a GitHub repository`
6. Select your Github repository
7. Click on `Import repository`

::tip
That's it! NuxtHub will automatically configure the necessary resources and environment variables for you start a deployment on Cloudflare.
::

### NuxtHub CLI

::warning
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.
::

You can deploy your local project with a single command:

```bash [Terminal]
Expand All @@ -35,20 +52,6 @@ The command will:
::note
You can also install the [NuxtHub CLI](https://github.com/nuxt-hub/cli) globally with: `npm i -g nuxthub`.
::

### Cloudflare Pages CI

It is possible to use [Cloudflare Pages CI](https://pages.cloudflare.com) to deploy your project by connecting your GitHub or GitLab account. Once your repository is connected, each commit will trigger a new deployment.

1. Open the [NuxtHub Admin](https://admin.hub.nuxt.com)
2. Click on `New Project` then `Import a GitHub repository`
6. Select your Github repository
7. Click on `Import repository`

::tip
That's it! NuxtHub will automatically configure the necessary resources and environment variables for you start a deployment on Cloudflare.
::

## Self-hosted

You can deploy your project on your own Cloudflare account without using the NuxtHub Admin.
Expand Down

0 comments on commit 456a8fb

Please sign in to comment.