Skip to content

Commit 456a8fb

Browse files
committed
docs: invert cloudflare pages ci and cli
1 parent 57022da commit 456a8fb

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed

docs/content/docs/1.getting-started/3.deploy.md

+17-14
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,25 @@ The [NuxtHub Admin](https://admin.hub.nuxt.com) is made to simplify your experie
1717
2. Connect your Cloudflare account by clicking on `Create a new token with required permissions` and follow the instructions
1818
3. You are now ready to deploy your Nuxt project to your Cloudflare account!
1919

20+
### Cloudflare Pages CI
21+
22+
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.
23+
24+
1. Open the [NuxtHub Admin](https://admin.hub.nuxt.com)
25+
2. Click on `New Project` then `Import a GitHub repository`
26+
6. Select your Github repository
27+
7. Click on `Import repository`
28+
29+
::tip
30+
That's it! NuxtHub will automatically configure the necessary resources and environment variables for you start a deployment on Cloudflare.
31+
::
32+
2033
### NuxtHub CLI
2134

35+
::warning
36+
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.
37+
::
38+
2239
You can deploy your local project with a single command:
2340

2441
```bash [Terminal]
@@ -35,20 +52,6 @@ The command will:
3552
::note
3653
You can also install the [NuxtHub CLI](https://github.com/nuxt-hub/cli) globally with: `npm i -g nuxthub`.
3754
::
38-
39-
### Cloudflare Pages CI
40-
41-
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.
42-
43-
1. Open the [NuxtHub Admin](https://admin.hub.nuxt.com)
44-
2. Click on `New Project` then `Import a GitHub repository`
45-
6. Select your Github repository
46-
7. Click on `Import repository`
47-
48-
::tip
49-
That's it! NuxtHub will automatically configure the necessary resources and environment variables for you start a deployment on Cloudflare.
50-
::
51-
5255
## Self-hosted
5356

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

0 commit comments

Comments
 (0)