Try to route logs requests to a different database

This commit is contained in:
Owen 2026-02-20 17:20:01 -08:00
parent eedf57af89
commit b622aca221
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
13 changed files with 338 additions and 66 deletions

View file

@ -0,0 +1,7 @@
import { db as mainDb } from "./driver";
// SQLite doesn't support separate databases for logs in the same way as Postgres
// Always use the main database connection for SQLite
export const logsDb = mainDb;
export default logsDb;
export const primaryLogsDb = logsDb;