diff options
Diffstat (limited to '')
-rw-r--r-- | middlewares/sessions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middlewares/sessions.js b/middlewares/sessions.js index 6112a8c..8697ae0 100644 --- a/middlewares/sessions.js +++ b/middlewares/sessions.js @@ -3,7 +3,7 @@ import sqlite from "better-sqlite3"; import sqliteStore from "better-sqlite3-session-store"; const SqliteStore = sqliteStore(expressSession); -const db = new sqlite("sessions.db", { verbose: console.log }); +const db = new sqlite("sessions.db", process.env.NODE_ENV === "production" ? null : { verbose: console.log }); const secret = process.env.SESSION_SECRET || "secret"; const session = expressSession({ cookie: { |