Skip to content

Commit d2adc33

Browse files
committed
chore: Remove .env.example and update database configuration
- Deleted the .env.example file as it contained outdated database configuration. - Updated the database configuration in src/db/config.ts to use a relative path for the memory database. - Added a new changeset file to document the configuration update.
1 parent dc63023 commit d2adc33

3 files changed

Lines changed: 12 additions & 13 deletions

File tree

.changeset/purple-shoes-remain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mcp-memory-libsql": patch
3+
---
4+
5+
update config

.env.example

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/db/config.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { DatabaseConfig } from "./client.js";
22

33
export function getDatabaseConfig(): DatabaseConfig {
4-
const url = process.env.LIBSQL_URL || 'file:/memory-tool.db';
5-
const authToken = process.env.LIBSQL_AUTH_TOKEN;
6-
7-
return {
8-
url,
9-
authToken,
10-
};
4+
const url = process.env.LIBSQL_URL || "file:./memory-tool.db";
5+
const authToken = process.env.LIBSQL_AUTH_TOKEN;
6+
7+
return {
8+
url,
9+
authToken,
10+
};
1111
}

0 commit comments

Comments
 (0)