Add DB_PATH env var for configurable database location
This commit is contained in:
parent
2a41a3302b
commit
3d192cf8b5
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ function runMigrations(): void {
|
|||
}
|
||||
}
|
||||
|
||||
export function initDb(path = "claude-remote.db"): Database {
|
||||
export function initDb(path = process.env.DB_PATH || "data/dev/claude-remote.db"): Database {
|
||||
db = new Database(path);
|
||||
|
||||
// Enable WAL mode for better concurrency
|
||||
|
|
|
|||
Loading…
Reference in a new issue