aboutsummaryrefslogtreecommitdiff
path: root/apps/web/README.md
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-03-30 14:50:42 -0700
committerDhravya <[email protected]>2024-03-30 14:50:42 -0700
commit2e6d1ce574d446c425fc29154b2f55ce5060185e (patch)
treef713b4feed078d3de5b70f3e1c2d1a10542fa9a0 /apps/web/README.md
parentadded policy (diff)
downloadsupermemory-2e6d1ce574d446c425fc29154b2f55ce5060185e.tar.xz
supermemory-2e6d1ce574d446c425fc29154b2f55ce5060185e.zip
fix: hot update in dev mode! FINALLY
Diffstat (limited to 'apps/web/README.md')
-rw-r--r--apps/web/README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/web/README.md b/apps/web/README.md
index c4e716e1..42da305a 100644
--- a/apps/web/README.md
+++ b/apps/web/README.md
@@ -52,7 +52,17 @@ In order to enable the example:
```
# KV Example:
```
+- If you're using TypeScript run the `build-cf-types` script to update the `env.d.ts` file:
+ ```bash
+ npm run build-cf-types
+ # or
+ yarn build-cf-types
+ # or
+ pnpm build-cf-types
+ # or
+ bun build-cf-types
+ ```
After doing this you can run the `dev` or `preview` script and visit the `/api/hello` route to see the example in action.
-Finally, if you also want to see the example work in the deployed application make sure to add a `MY_KV` binding to your Pages application in its [dashboard kv bindings settings section](https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/settings/functions#kv_namespace_bindings_section). After having configured it make sure to re-deploy your application.
+Finally, if you also want to see the example work in the deployed application make sure to add a `MY_KV_NAMESPACE` binding to your Pages application in its [dashboard kv bindings settings section](https://dash.cloudflare.com/?to=/:account/pages/view/:pages-project/settings/functions#kv_namespace_bindings_section). After having configured it make sure to re-deploy your application.