mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-01-18 16:37:40 +01:00
env db path
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user