use a dev vectorize database to prevent pollution

This commit is contained in:
Dhravya 2024-06-16 12:29:10 -05:00
parent a9f5ebc9e4
commit c5b31e5435
2 changed files with 3 additions and 2 deletions

View file

@ -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...

View file

@ -5,7 +5,7 @@ node_compat = true
[[vectorize]]
binding = "VECTORIZE_INDEX"
index_name = "supermem-vector"
index_name = "supermem-vector-dev"
[ai]
binding = "AI"