Skip to content

Commit

Permalink
docs: added clarifications in self-hosted deployments (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax authored Apr 11, 2024
1 parent 1c39ecd commit 1cb4da1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docs/content/docs/1.getting-started/3.deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,24 @@ For that, you need to create the necessary resources in your Cloudflare account
- 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))
- One [R2 bucket](https://dash.cloudflare.com/?to=/:account/r2/new)

::note
You only need to create these resources if you have explicitly enabled them in the Hub Config.
::

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.

Once your project is created, open the `Settings -> Functions` tab and set:
- Placement: Smart
- KV namespace bindings
- `KV` -> select your KV namespace created
- `CACHE` -> select your KV namespace for caching created
- Set the variable name as `KV` and select your KV namespace created
- Set the variable name as `CACHE` and select your KV namespace for caching created
- R2 bucket bindings
- `BLOB` -> select your R2 bucket created
- Set the variable name as `BLOB` and select your R2 bucket created
- D1 database bindings
- `DB` -> select your D1 database created
- Set the variable name as `DB` and select your D1 database created


Go back to the `Deployment` tab and retry the last deployment by clicing on `...` then `Retry deployment`.
Go back to the `Deployment` tab and retry the last deployment by clicking on `...` then `Retry deployment`.

::tip
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)
Expand Down

0 comments on commit 1cb4da1

Please sign in to comment.