···11# Selfhosting with cloudflare workers
2233-- fork this repo
44-- create a cloudflare worker application and connect it to your fork
55-- change the vars in `wrangler.jsonc` (including https:// in the PUBLIC_DOMAIN var!)
33+1. fork this repo
44+2. create a cloudflare worker application and connect it to your fork
55+3. change the vars in `wrangler.jsonc` (including https:// in the PUBLIC_DOMAIN var!)
6677```json
88 "vars": {
···1111 "PUBLIC_DOMAIN": "https://your-cloudflare-worker-or-custom-domain.com"
1212 }
1313```
1414+1515+4. remove the kv_namespaces from the `wrangler.jsonc`
1616+1717+```json
1818+"kv_namespaces": [
1919+ {
2020+ "binding": "USER_DATA_CACHE",
2121+ "id": "d6ff203259de48538d332b0a5df258a7",
2222+ "remote": true
2323+ }
2424+]
2525+```
2626+2727+5. (maybe necessary? will improve performance at least) create your own kv store by running `npx wrangler kv namespace create USER_DATA_CACHE` and when asked add it to the `wrangler.jsonc`
14281529DONE :) your blento should be live after a minute or two at `your-cloudflare-worker-or-custom-domain.com` and you can edit it by signing in with your bluesky account at `your-cloudflare-worker-or-custom-domain.com/edit`