mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-02 21:50:10 +00:00
fix: hot update in dev mode! FINALLY
This commit is contained in:
parent
f11a9cad2e
commit
2e6d1ce574
42 changed files with 8783 additions and 760 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue