Home
/
river.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5142cfa
)
add debug prop as env var
author
xangelo
<me@xangelo.ca>
Sat, 27 Jan 2024 03:50:14 +0000
(22:50 -0500)
committer
xangelo
<me@xangelo.ca>
Sat, 27 Jan 2024 03:50:14 +0000
(22:50 -0500)
src/server.ts
patch
|
blob
|
history
diff --git
a/src/server.ts
b/src/server.ts
index 707c0a036a3b320f69bd21918d4ed1f7d2cb4705..9d987c0ad2835f87f774e617faab2b722fe51462 100644
(file)
--- 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')
}