mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
env db path
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import Database from "better-sqlite3";
|
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
|
CREATE ALL TABLES FIRST
|
||||||
|
|||||||
Reference in New Issue
Block a user