You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/1.getting-started/1.index.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ NuxtHub provides a set of features to help you build full-stack applications:
19
19
Each feature comes with its auto-imported server composable to use in your [Nuxt's server directory](https://nuxt.com/docs/guide/directory-structure/server).
20
20
21
21
::callout{icon="i-ph-plugs-connected-duotone"}
22
-
NuxtHub comes with a powerful proxy system to connect to your project's resources from your local environment, allowing you to work with your remote data as if it was local.
22
+
NuxtHub comes with a powerful proxy system to connect to your project's resources from your local environment, allowing you to work with your remote storage as if it was local.
23
23
::
24
24
25
25
## Modules
@@ -37,9 +37,9 @@ We are currently in the early stages of development and are looking for feedback
The [NuxtHub console](https://hub.nuxt.com) is a web based dashboard to manage your NuxtHub apps. It helps you deploy your NuxtHub apps with a single command on your Cloudflare account while provisioning all the necessary resources for you. It abstracts the complexity of managing full-stack Nuxt applications on Cloudflare.
42
+
The [NuxtHub console](https://console.hub.nuxt.com) is a web based dashboard to manage your NuxtHub apps. It helps you deploy your NuxtHub apps with a single command on your Cloudflare account while provisioning all the necessary resources for you. It abstracts the complexity of managing full-stack Nuxt applications on Cloudflare.
43
43
44
44
### Features
45
45
@@ -52,5 +52,5 @@ The [NuxtHub console](https://hub.nuxt.com) is a web based dashboard to manage y
52
52
- Monitor your application with logs and analytics
53
53
54
54
::callout
55
-
The NuxtHub console is currently in private alpha and is not yet open to the public. We are looking for early adopters to help us shape the platform. If you are interested, please register on [hub.nuxt.com](https://hub.nuxt.com) and tell us what you plan to build with NuxtHub.
55
+
The NuxtHub Console is currently in private alpha and is not yet open to the public. We are looking for early adopters to help us shape the platform. If you are interested, please register on [console.hub.nuxt.com](https://console.hub.nuxt.com) and tell us what you plan to build with NuxtHub.
Copy file name to clipboardExpand all lines: docs/content/1.getting-started/3.deploy.md
+28-8Lines changed: 28 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ To deploy your Nuxt application on the Edge, we use Cloudflare Pages. Therefore,
7
7
8
8
## NuxtHub Console (alpha)
9
9
10
-
The [NuxtHub Console](https://hub.nuxt.com) is made to simplify your experience with the NuxtHub module, enabling you to effortlessly manage teams and projects, as well as deploy in seconds combined with the NuxtHub CLI.
10
+
The [NuxtHub Console](https://console.hub.nuxt.com) is made to simplify your experience with the NuxtHub module, enabling you to effortlessly manage teams and projects, as well as deploy in seconds combined with the NuxtHub CLI.
11
11
12
12
After linking your Cloudflare account in the console, deploy your project with a single command:
13
13
@@ -16,7 +16,7 @@ npx nuxthub deploy
16
16
```
17
17
18
18
The command will:
19
-
1. Ensure your are logged in on hub.nuxt.com
19
+
1. Ensure your are logged in on console.hub.nuxt.com
20
20
2. Link your local project with a NuxtHub project (or create a new one)
21
21
3. Build your Nuxt project with the correct preset
22
22
4. Deploy it to your Cloudflare account with all the necessary resources
@@ -26,19 +26,30 @@ The command will:
26
26
Install the [NuxtHub CLI](https://github.com/nuxt-hub/cli) globally with: `npm i -g nuxthub`.
27
27
::
28
28
29
-
### Remote data
29
+
### Remote Storage
30
30
31
-
In order to use remote data in your local project, update your `nuxt.config.ts`:
31
+
Once your project is deployed, you can use the remote storage in your local project.
32
+
33
+
Start your Nuxt project with:
34
+
35
+
```bash [Terminal]
36
+
npx nuxt dev --remote
37
+
```
38
+
39
+
Your development project will now use the remote storage from your deployed project.
40
+
41
+
To always use the remote storage in your local project, update your `nuxt.config.ts`:
32
42
33
43
```ts [nuxt.config.ts]
34
44
exportdefaultdefineNuxtConfig({
35
45
hub: {
46
+
// Always use remote storage in development
36
47
remote: true
37
48
}
38
49
})
39
50
```
40
51
41
-
When restarting your local server, the module will automatically use the remote data from your deployed project as long as you are logged in with the [NuxtHub CLI](https://github.com/nuxt-hub/cli) and the local project is linked to a NuxtHub project.
52
+
The module will use the remote storage from your deployed project **as long as you are logged in with the [NuxtHub CLI](https://github.com/nuxt-hub/cli) and the local project is linked to a NuxtHub project**.
42
53
43
54
## Self-hosted
44
55
@@ -62,15 +73,24 @@ Go back to the `Deployment` tab and retry the last deployment by clicing on `...
62
73
63
74
Once the deployment is done, NuxtHub should be ready to use in your deployed project.
64
75
65
-
### Remote data
76
+
### Remote Storage
66
77
67
-
To enable remote data in your self-hosted project, the module requires a secret to access the remote data.
78
+
To enable remote storage in your self-hosted project, the module requires a secret to access it.
68
79
69
80
1. Set the `NUXT_HUB_PROJECT_SECRET` environment variable in your Cloudflare Pages project settings and retry the last deployment to apply the changes.
70
-
2. Set the same `NUXT_HUB_PROJECT_SECRET` and `NUXT_HUB_PROJECT_URL` environment variables in your local project:
81
+
2. Set the same `NUXT_HUB_PROJECT_SECRET` and `NUXT_HUB_PROJECT_URL` environment variables in your local project
When restarting your local server, the module will automatically use the remote data from your deployed project as long as the `NUXT_HUB_PROJECT_SECRET` matches the one in your Cloudflare Pages project settings.
89
+
90
+
Then, start your Nuxt project with:
91
+
92
+
```bash [Terminal]
93
+
npx nuxt dev --remote
94
+
```
95
+
96
+
Your development project will now use the remote storage from your deployed project.
0 commit comments