diff --git a/agent/src/index.ts b/agent/src/index.ts index 7baf67a9a4..22e24358b0 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -184,7 +184,10 @@ function initializeDatabase(dataDir: string) { }); return db; } else { - const filePath = path.resolve(dataDir, "db.sqlite"); + const filePath = path.resolve( + dataDir, + process.env.SQLITE_FILE ?? "db.sqlite" + ); const db = new SqliteDatabaseAdapter(new Database(filePath)); return db; }