aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-06-16 12:29:10 -0500
committerDhravya <[email protected]>2024-06-16 12:29:10 -0500
commitc5b31e54355909798a163cbbbcdbeedddb2995ee (patch)
tree6e3865ab2077908067cf948081db02b499627391
parentinclude metadata in response, add type to metadata (diff)
downloadsupermemory-c5b31e54355909798a163cbbbcdbeedddb2995ee.tar.xz
supermemory-c5b31e54355909798a163cbbbcdbeedddb2995ee.zip
use a dev vectorize database to prevent pollution
-rw-r--r--SETUP-GUIDE.md3
-rw-r--r--apps/cf-ai-backend/wrangler.toml2
2 files changed, 3 insertions, 2 deletions
diff --git a/SETUP-GUIDE.md b/SETUP-GUIDE.md
index 97c0be45..f51b1cb1 100644
--- a/SETUP-GUIDE.md
+++ b/SETUP-GUIDE.md
@@ -19,6 +19,7 @@ NEXTAUTH_SECRET='nextauthsecret'
DATABASE_URL='database.sqlite'
NEXTAUTH_URL='http://localhost:3000'
BACKEND_SECURITY_KEY='veryrandomsecuritykey'
+BACKEND_BASE_URL="where your backend is hosted"
```
4. Setup the database:
@@ -46,7 +47,7 @@ Simply run this command in `apps/web`
bunx wrangler d1 migrations apply <YOUR_DATABASE_NAME>
```
-If it runs, you can set up the cloud database as well by removing the `--local` flag,
+If it runs, you can set up the cloud database as well by removing the `--local` flag,
if you just want to contribute to frontend then just run `bun run dev` in the root of the project and done! (you won't be able to try ai stuff), otherwise continue...
diff --git a/apps/cf-ai-backend/wrangler.toml b/apps/cf-ai-backend/wrangler.toml
index db0ae945..fa883195 100644
--- a/apps/cf-ai-backend/wrangler.toml
+++ b/apps/cf-ai-backend/wrangler.toml
@@ -5,7 +5,7 @@ node_compat = true
[[vectorize]]
binding = "VECTORIZE_INDEX"
-index_name = "supermem-vector"
+index_name = "supermem-vector-dev"
[ai]
binding = "AI"