Skip to content

Commit 1cb4da1

Browse files
authored
docs: added clarifications in self-hosted deployments (#65)
1 parent 1c39ecd commit 1cb4da1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

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

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,24 @@ For that, you need to create the necessary resources in your Cloudflare account
5959
- 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))
6060
- One [R2 bucket](https://dash.cloudflare.com/?to=/:account/r2/new)
6161

62+
::note
63+
You only need to create these resources if you have explicitly enabled them in the Hub Config.
64+
::
65+
6266
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.
6367

6468
Once your project is created, open the `Settings -> Functions` tab and set:
6569
- Placement: Smart
6670
- KV namespace bindings
67-
- `KV` -> select your KV namespace created
68-
- `CACHE` -> select your KV namespace for caching created
71+
- Set the variable name as `KV` and select your KV namespace created
72+
- Set the variable name as `CACHE` and select your KV namespace for caching created
6973
- R2 bucket bindings
70-
- `BLOB` -> select your R2 bucket created
74+
- Set the variable name as `BLOB` and select your R2 bucket created
7175
- D1 database bindings
72-
- `DB` -> select your D1 database created
76+
- Set the variable name as `DB` and select your D1 database created
77+
7378

74-
Go back to the `Deployment` tab and retry the last deployment by clicing on `...` then `Retry deployment`.
79+
Go back to the `Deployment` tab and retry the last deployment by clicking on `...` then `Retry deployment`.
7580

7681
::tip
7782
Once the deployment is done, you should be able to use `npx nuxt dev --remote` after [configuring the remote storage](/docs/getting-started/remote-storage#self-hosted)

0 commit comments

Comments
 (0)