feat: dukung SETTINGS_PATH (settings.json di direktori mount/persisten)

This commit is contained in:
oxpoe
2026-10-13 03:29:36 +07:00
parent f27c02309e
commit 6f97430e41
6 changed files with 12 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ let settingsCacheTime = 0;
const CACHE_DURATION = 2000; // 2 detik
// File system watcher untuk auto-reload settings
const settingsPath = path.join(__dirname, '../settings.json');
const { settingsPath } = require('./paths');
let watcher = null;
// Helper untuk baca settings.json secara dinamis