From c5b31e54355909798a163cbbbcdbeedddb2995ee Mon Sep 17 00:00:00 2001 From: Dhravya Date: Sun, 16 Jun 2024 12:29:10 -0500 Subject: use a dev vectorize database to prevent pollution --- SETUP-GUIDE.md | 3 ++- apps/cf-ai-backend/wrangler.toml | 2 +- 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 ``` -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" -- cgit v1.2.3