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/docs/1.getting-started/1.index.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,23 +3,24 @@ title: Introduction
3
3
description: NuxtHub helps you build full-stack applications on the Edge.
4
4
---
5
5
6
-
NuxtHub aims to provide a complete backend experience for [Nuxt](https://nuxt.com) apps, allowing developers to build full-stack applications on the Edge.
6
+
NuxtHub aims to provide a complete backend experience for [Nuxt](https://nuxt.com) apps, allowing developers to build full-stack applications on the Edge, read more about [Nuxt on the edge](https://nuxt.com/blog/nuxt-on-the-edge).
7
7
8
8
::callout
9
9
It is **currently made to be deployed on [Cloudflare Pages](https://pages.cloudflare.com)** as it leverages many Cloudflare features such as KV, D1, and R2. We are looking to support other platforms in the future.
10
10
::
11
11
12
-
## Storage
12
+
## Features
13
13
14
-
NuxtHub provides different storage to help you build full-stack applications:
14
+
NuxtHub provides multiple features to help you build full-stack applications:
15
15
-**SQL database** to store your application's data with [`hubDatabase()`](/docs/storage/database)
16
16
-**Key-Value** to store JSON data accessible globally with low-latency with [`hubKV()`](/docs/storage/kv)
17
17
-**Blob storage** to store static assets, such as images, videos and more with [`hubBlob()`](/docs/storage/blob)
18
+
-**Cache storage** to cache your server route responses or functions using Nitro's [`cachedEventHandler`](https://nitro.unjs.io/guide/cache#cached-event-handlers) and [`cachedFunction`](https://nitro.unjs.io/guide/cache#cached-functions)
18
19
19
-
Each storage utils is auto-imported and ready to be used in your [Nuxt's server directory](https://nuxt.com/docs/guide/directory-structure/server).
20
+
Each storage utils is auto-imported and configured to be used in your [Nuxt's server directory](https://nuxt.com/docs/guide/directory-structure/server).
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
+
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 with `npx nuxi dev --remote`.
Copy file name to clipboardExpand all lines: docs/content/docs/1.getting-started/3.deploy.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,15 +59,19 @@ Nuxt will use the remote storage from your deployed project **as long as you are
59
59
60
60
You can deploy your project on your own Cloudflare account without using the NuxtHub Console.
61
61
62
-
For that, you need to create the necessary resources in your Cloudflare account and configure your project to use them.
62
+
For that, you need to create the necessary resources in your Cloudflare account and configure your project to use them:
63
63
64
-
1. Create a D1 database, KV namespace and R2 bucket in your Cloudflare account.
65
-
2. Create a Cloudflare Pages project and link it to your GitHub or Gitlab repository and choose the Nuxt Framework preset in the build settings.
64
+
- One [D1 database](https://dash.cloudflare.com/?to=/:account/workers/d1)
65
+
- Two [KV namespaces](https://dash.cloudflare.com/?to=/:account/workers/kv/namespaces) (one for `hubKV()` and one for [server caching](https://nitro.unjs.io/guide/cache))
66
+
- One [R2 bucket](https://dash.cloudflare.com/?to=/:account/r2/new)
67
+
68
+
Then, create a [Cloudflare Pages project](https://dash.cloudflare.com/?to=/:account/pages/new/provider/github) and link your GitHub or Gitlab repository and choose the Nuxt Framework preset in the build settings.
66
69
67
70
Once your project is created, open the `Settings -> Functions` tab and set:
68
71
- Placement: Smart
69
72
- KV namespace bindings
70
73
-`KV` -> select your KV namespace created
74
+
-`CACHE` -> select your KV namespace for caching created
0 commit comments