Skip to content

Commit 3027273

Browse files
committed
feat: Migrate chat history and core data storage from KV to PostgreSQL with NextAuth integration.
1 parent 4c0b721 commit 3027273

File tree

18 files changed

+1333
-212
lines changed

18 files changed

+1333
-212
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,9 @@ AUTH_GITHUB_ID="your_github_client_id"
2222
AUTH_GITHUB_SECRET="your_github_client_secret"
2323
AUTH_SECRET="any_random_32char_string"
2424

25+
# Postgres (Neon)
26+
DATABASE_URL="your_neon_pooled_connection_url"
27+
DIRECT_URL="your_neon_direct_connection_url"
28+
2529
# Resend
2630
RESEND_API_KEY="your_resend_api_key"

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,15 @@ We don't just analyze code; we analyze **coders**. RepoMind is the only platform
225225
KV_REST_API_URL="your_kv_rest_api_url"
226226
KV_URL="your_kv_url"
227227
REDIS_URL="your_redis_url"
228+
229+
# NextAuth
230+
AUTH_GITHUB_ID="your_github_client_id"
231+
AUTH_GITHUB_SECRET="your_github_client_secret"
232+
AUTH_SECRET="your_random_32_plus_char_secret"
233+
234+
# Postgres (Neon)
235+
DATABASE_URL="your_neon_pooled_connection_url"
236+
DIRECT_URL="your_neon_direct_connection_url"
228237
```
229238

230239
4. **Run the development server**
@@ -308,7 +317,7 @@ RepoMind includes a powerful DevTools panel accessible via the wrench icon:
308317

309318
- **GitHub Token**: Stored locally in your browser, never sent to our servers
310319
- **API Keys**: Environment variables, not exposed to client
311-
- **No Data Storage**: Conversations are ephemeral (optional KV cache for performance)
320+
- **Data Storage**: User auth and core history are stored in Postgres; cache and counters are stored in KV
312321
- **Server-Side Processing**: AI analysis happens on Vercel Edge, not client-side
313322
- **Open Source**: Audit the code yourself
314323

0 commit comments

Comments
 (0)