Add DB_PATH env var for configurable database location

This commit is contained in:
Jared Miller 2026-01-28 17:05:30 -05:00
parent 2a41a3302b
commit 3d192cf8b5
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C

View file

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