From: xangelo Date: Sat, 27 Jan 2024 03:50:14 +0000 (-0500) Subject: add debug prop as env var X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=30bb809a469b43a02ccb5287414d1de49ab7f984;p=river.git add debug prop as env var --- diff --git a/src/server.ts b/src/server.ts index 707c0a0..9d987c0 100644 --- a/src/server.ts +++ b/src/server.ts @@ -8,6 +8,7 @@ import { renderFeedItem, renderFeedItemHeader } from './views'; const db = knex({ client: 'better-sqlite3', + debug: process.env.DEBUG === 'true', connection: { filename: join('./data.db') }