debug: log adminPath at startup in hooks.ts
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user