debug: log adminPath at startup in hooks.ts

This commit is contained in:
Falkan
2026-03-20 01:53:25 -04:00
parent ea08258ad4
commit f10e4a6cbe

View File

@@ -7,6 +7,7 @@ let adminPath = 'admin';
try {
const config = JSON.parse(fs.readFileSync(path.resolve('data', 'config.json'), 'utf8'));
adminPath = (config.adminPath ?? 'admin').replace(/^\/|\/$/g, '') || 'admin';
console.log('[hooks] adminPath set to:', adminPath);
} catch {
// config.json missing or unreadable — fall back to 'admin'
}