env db path

This commit is contained in:
Milo
2025-12-20 16:17:22 +01:00
parent 738e21aaf7
commit 2c74088e90

View File

@@ -1,6 +1,6 @@
import Database from "better-sqlite3";
export const flopoDB = new Database("flopobot.db");
export const flopoDB = new Database(process.env.DB_PATH || "flopobot.db");
/* -------------------------
CREATE ALL TABLES FIRST