From 8ac636186cf5f704264e7473864c54b3edaf4049 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Mon, 21 Nov 2022 21:39:17 +0100 Subject: Added basic games handling --- middlewares/sessions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'middlewares') 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: { -- cgit v1.2.3