This commit is contained in:
zhongluofeng committed 2026-11-06 15:07:02 +08:00
1 parent 787544eec1
commit 4ff9146910
81 files changed
+18417 -545

No files matched your search

+2
View File
@@ -1,6 +1,8 @@
import { DatabaseSync } from 'node:sqlite';
import { cpSync, existsSync, mkdirSync } from 'node:fs';
if (existsSync('.env')) process.loadEnvFile('.env');
const DB_PATH = process.env.DB_PATH ?? 'data/app.db';
const UPLOADS = process.env.UPLOADS_DIR ?? 'data/uploads';