db file from env var

This commit is contained in:
me 2025-03-14 10:05:44 +02:00
parent 6224b124a8
commit c0cbbf2ed1

View File

@ -27,7 +27,7 @@ function escapeHtml(unsafe) {
// db
const db = new Database('ucs.db'); // , { verbose: console.log });
const db = new Database(process.env.DB || 'ucs.db'); // , { verbose: console.log });
db.pragma('journal_mode = WAL');
const migrations = [